summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-11-08 07:22:21 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-11-08 07:22:21 (GMT)
commitcd16a6c9298778265a044e5f9a39b006277b32f2 (patch)
tree833e55ba6cebc323daceb26f0d2499684a2124de /git-gui.sh
parent48b8d2b3792339d4dbd37802db8ec797361dd1fe (diff)
downloadgit-cd16a6c9298778265a044e5f9a39b006277b32f2.zip
git-cd16a6c9298778265a044e5f9a39b006277b32f2.tar.gz
git-cd16a6c9298778265a044e5f9a39b006277b32f2.tar.bz2
git-gui: Bind Meta-T for "Stage To Commit" menu action
Aaron Digulla suggested we bind Ctrl-T or Cmd-T to "Stage To Commit" menu action so it can be easily accessed from the keyboard. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index b41e107..1fca11f 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1986,7 +1986,8 @@ if {[is_enabled multicommit] || [is_enabled singlecommit]} {
[list .mbar.commit entryconf [.mbar.commit index last] -state]
.mbar.commit add command -label [mc "Stage To Commit"] \
- -command do_add_selection
+ -command do_add_selection \
+ -accelerator $M1T-T
lappend disable_on_lock \
[list .mbar.commit entryconf [.mbar.commit index last] -state]
@@ -2638,6 +2639,8 @@ unset gm
# -- Key Bindings
#
bind $ui_comm <$M1B-Key-Return> {do_commit;break}
+bind $ui_comm <$M1B-Key-t> {do_add_selection;break}
+bind $ui_comm <$M1B-Key-T> {do_add_selection;break}
bind $ui_comm <$M1B-Key-i> {do_add_all;break}
bind $ui_comm <$M1B-Key-I> {do_add_all;break}
bind $ui_comm <$M1B-Key-x> {tk_textCut %W;break}
@@ -2687,6 +2690,8 @@ bind . <$M1B-Key-r> do_rescan
bind . <$M1B-Key-R> do_rescan
bind . <$M1B-Key-s> do_signoff
bind . <$M1B-Key-S> do_signoff
+bind . <$M1B-Key-t> do_add_selection
+bind . <$M1B-Key-T> do_add_selection
bind . <$M1B-Key-i> do_add_all
bind . <$M1B-Key-I> do_add_all
bind . <$M1B-Key-Return> do_commit