diff --git a/Default.sublime-commands b/Default.sublime-commands index 87713ef..356972f 100644 --- a/Default.sublime-commands +++ b/Default.sublime-commands @@ -1,7 +1,33 @@ [ { - "args": {}, "caption": "CTags: Rebuild Tags", "command": "rebuild_tags" + }, + { + "caption": "CTags: Show Symbols (file)", + "command": "show_symbols", + "context": [ + { + "key": "selector", + "match_all": true, + "operand": "source -source.css", + "operator": "equal" + } + ] + }, + { + "caption": "CTags: Show Symbols (all)", + "command": "show_symbols", + "args": { + "type": "multi" + }, + "context": [ + { + "key": "selector", + "match_all": true, + "operand": "source -source.css", + "operator": "equal" + } + ] } ] diff --git a/Default.sublime-keymap b/Default.sublime-keymap index 08787e6..baa44a3 100644 --- a/Default.sublime-keymap +++ b/Default.sublime-keymap @@ -3,6 +3,10 @@ "command": "navigate_to_definition", "keys": ["ctrl+t", "ctrl+t"] }, + { + "command": "navigate_to_definition", + "keys": ["ctrl+shift+period"] + }, { "command": "search_for_definition", "keys": ["ctrl+t", "ctrl+y"] @@ -11,6 +15,10 @@ "command": "jump_back", "keys": ["ctrl+t", "ctrl+b"] }, + { + "command": "jump_back", + "keys": ["ctrl+shift+comma"] + }, { "command": "jump_back", "args": {"to": "last_modification"}, @@ -61,7 +69,7 @@ { // override current default "command": "transpose", "context": [ - { "key": "num_selections", "operator": "not_equal", "operand": 1 } + { "key": "num_selections", "operator": "greater_than", "operand": 1 } ], "keys": ["ctrl+t"] } diff --git a/Default.sublime-mousemap b/Default.sublime-mousemap index 48f7f4f..9d88750 100644 --- a/Default.sublime-mousemap +++ b/Default.sublime-mousemap @@ -5,5 +5,11 @@ "press_command": "drag_select", "modifiers": ["ctrl","shift"], "command": "navigate_to_definition" + }, + { + "button": "button2", + "count": 1, + "modifiers": ["ctrl","shift"], + "command": "jump_back" } ] diff --git a/README.creole b/README.creole index 18ac213..4382b83 100644 --- a/README.creole +++ b/README.creole @@ -16,19 +16,9 @@ To get a proper copy of ctags, use one of the following options: * Using [[http://www.macports.org/|MacPorts]]: {{{port install ctags}}} -* Make sure that Sublime Text is using the right version of CTags: Ensure that ~/.MacOSX/environment.plist has /usr/local/bin in the PATH string before /usr/bin (the standard location for CTags). Here's a sample environment.plist that should work: - -{{{ - - - - -PATH -/usr/local/bin:/usr/bin:/bin - - -}}} -* If /usr/local/bin wasn't in your PATH already, you have to log out and log back in for the environment variables to be read in again. +*Make sure that Sublime Text is using the right version of CTags:* +* If 'which ctags' doesn't point at ctags in '/usr/local/bin', make sure you add '/usr/local/bin' to your PATH ahead of the folder that 'which ctags' reported. +** Add or modify the 'export PATH=...' (e.g. in ~/.profile) to make the change permanent === Linux === @@ -136,10 +126,10 @@ Thanks :) === Commands Listing === -|=Command |=Key Binding |=Alt Binding |=Mouse Binding | -| rebuild_ctags | ctrl+t ctrl+r | | | -| navigate_to_definition | ctrl+t ctrl+t | ctrl+alt+] | ctrl+alt+left_click | -| jump_back | ctrl+t ctrl+b | ctrl+alt+[ | | -| jump_back to_last_modification | ctrl+t ctrl+m | | | -| show_symbols | alt+s | | | -| show_symbols multi | alt+shift+s | | | +|=Command |=Key Binding |=Alt Binding |=Mouse Binding | +| rebuild_ctags | ctrl+t ctrl+r | | | +| navigate_to_definition | ctrl+t ctrl+t | ctrl+> | ctrl+shift+left_click | +| jump_back | ctrl+t ctrl+b | ctrl+< | ctrl+shift+right_click | +| jump_back to_last_modification | ctrl+t ctrl+m | | | +| show_symbols | alt+s | | | +| show_symbols multi | alt+shift+s | | |