diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-01-21 01:34:55 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-21 02:54:25 -0500 |
commit | bd29ebc3927780c2bc6c91abb12054a283201c15 (patch) | |
tree | a7a8b57a880425440470ba6a3c9023d7ee61e34c | |
parent | git-gui: Implemented create branch GUI. (diff) | |
download | tgif-bd29ebc3927780c2bc6c91abb12054a283201c15.tar.xz |
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>
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 605fc17dc5..db6d014e66 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3248,6 +3248,7 @@ if {!$single_commit} { .mbar.branch add command -label {Create...} \ -command do_create_branch \ + -accelerator $M1T-N \ -font font_ui lappend disable_on_lock [list .mbar.branch entryconf \ [.mbar.branch index last] -state] @@ -3815,6 +3816,11 @@ bind $ui_diff <Key-Down> {catch {%W yview scroll 1 units};break} bind $ui_diff <Key-Left> {catch {%W xview scroll -1 units};break} bind $ui_diff <Key-Right> {catch {%W xview scroll 1 units};break} +if {!$single_commit} { + bind . <$M1B-Key-n> do_create_branch + bind . <$M1B-Key-N> do_create_branch +} + bind . <Destroy> do_quit bind all <Key-F5> do_rescan bind all <$M1B-Key-r> do_rescan |