Add binding for opening tag in another window

Adds a binding to gtags which opens the found tag in another window
similar to gg and gG.
This commit is contained in:
NJBS 2016-03-25 02:43:12 -04:00 committed by Eivind Fonn
parent 2136a8e74f
commit ddede916cf
2 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ Since these modes have better Eldoc integration already.
| ~SPC m g g~ | jump to a location based on context |
| ~SPC m g G~ | jump to a location based on context (open another window) |
| ~SPC m g d~ | find definitions |
| ~SPC m g D~ | find definitions (open another window) |
| ~SPC m g i~ | present tags in current function only |
| ~SPC m g l~ | jump to definitions in file |
| ~SPC m g n~ | jump to next location in context stack |

View File

@ -26,6 +26,7 @@
(spacemacs/set-leader-keys-for-major-mode mode
"gc" 'helm-gtags-create-tags
"gd" 'helm-gtags-find-tag
"gD" 'helm-gtags-find-tag-other-window
"gf" 'helm-gtags-select-path
"gg" 'helm-gtags-dwim
"gG" 'helm-gtags-dwim-other-window