@matheusbsbs / matheus-bagliano / commits / bd29ebc392
Fork 0

git-gui: Bind M1-N to create branch.

Creating branches is a common enough activity within a Git project that we probably should give it a keyboard accelerator. N is not currently used and seems reasonable to stand for "New Branch". To bad our menu calls it create. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 21, 2007 at 01:34 UTC bd29ebc3927780c2bc6c91abb12054a283201c15
1 file changed +6
git-gui.sh
+6
@@ -3248,6 +3248,7 @@ if {!$single_commit} {
3248
3249 .mbar.branch add command -label {Create...} \
3250 -command do_create_branch \
3251 + -accelerator $M1T-N \
3252 -font font_ui
3253 lappend disable_on_lock [list .mbar.branch entryconf \
3254 [.mbar.branch index last] -state]
@@ -3815,6 +3816,11 @@ bind $ui_diff <Key-Down> {catch {%W yview scroll 1 units};break}
3816 bind $ui_diff <Key-Left> {catch {%W xview scroll -1 units};break}
3817 bind $ui_diff <Key-Right> {catch {%W xview scroll 1 units};break}
3818
3819 +if {!$single_commit} {
3820 + bind . <$M1B-Key-n> do_create_branch
3821 + bind . <$M1B-Key-N> do_create_branch
3822 +}
3823 +
3824 bind . <Destroy> do_quit
3825 bind all <Key-F5> do_rescan
3826 bind all <$M1B-Key-r> do_rescan