SublimeText/CTags — pull request #63 by romario333 (2012-09-16 14:01:58+00:00)
Title: Fix issue #59 - refactor the selection of the target directory for the rebuild-tags c

I have refactored the mechanism by which the target directory for generating of `.tags` is selected. I have added support for the following use cases:

* User has requested to rebuild CTags for the specific folder(s) (via context menu in Folders pane). Rebuild only selected folders.
* User has executed rebuild-tags command via keyboard shortcut:
* If file is selected or opened, rebuild tags for the top-level folder relative to this file.
* If no file is selected, rebuild tags for all opened folders

Another common requirement is IMO ability to rebuild .tags file, which is found higher in the directory tree (even if it means go beyond the scope of opened folders). In fact such .tags file should have always precedence.

Other implementation notes:

* I have decoupled function `find_tags_relative_to` from view
* I have added print statements telling you which tags has been generated.
* Somewhere in the past rebuild-tags code was interactive (using sublime.question_box). Can this be replaced with sublime.ok_cancel_dialog? Or is it ok just to delete it? IMO confirmation from the user is not necessary.

I'll be happy for any comments.