Shortcut for branch switching? [message #1835433] |
Thu, 03 December 2020 04:48  |
Eclipse User |
|
|
|
Hi,
one can use
Git Repository View -> Right Click -> Switch To -> Other...
to switch to antother branch. Is it possible to add a shortcut for this? I looked at
Preferences -> General -> Keys -> Type "branch"
But I couldn't see an option for "Switch To -> Other"
Best regards
|
|
|
Re: Shortcut for branch switching? [message #1835456 is a reply to message #1835433] |
Thu, 03 December 2020 12:24   |
Eclipse User |
|
|
|
My solution to this problem applies in other places also. I strive to optimize my keyboard usage, so I pay attention to this a lot. Unfortunately, there is no direct shortcut for this.
I bound "Ctrl+; ." to "show-context-menu". That's Ctrl-semicolon, then "." (period). This presents the context menu, with nothing selected. Pressing "downarrow" at this point selects the first menu item, which is "Switch To". Now press "rightarrow" to expand the menu for "Switch To". That opens the menu, with "New Branch..." selected. Press "uparrow", which goes to the bottom of the menu, which now selects "Other...".
It sounds complicated, but it's very easy to get used to.
I use "Ctrl+;" as a common prefix for several functions that are either not typically bound, or for which I want a more convenient shortcut for. I also use the "Emacs+ plugin, which provides quite a few other convenient functions that don't come by default.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04439 seconds