Skip to content
Permalink
Browse files

git-gui: allow Ctrl+T to toggle multiple paths

This fixes #1012

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
dscho committed May 30, 2017
1 parent 8b4e64d commit 759b4f1c8ed03e6e9cdfc028b47235539f1eadb0
Showing with 13 additions and 0 deletions.
  1. +13 −0 git-gui/git-gui.sh
@@ -2513,6 +2513,19 @@ proc toggle_or_diff {mode w args} {
set pos [split [$w index @$x,$y] .]
foreach {lno col} $pos break
} else {
if {$mode eq "toggle"} {
if {$w eq $ui_workdir} {
do_add_selection
set last_clicked {}
return
}
if {$w eq $ui_index} {
do_unstage_selection
set last_clicked {}
return
}
}
if {$last_clicked ne {}} {
set lno [lindex $last_clicked 1]
} else {

3 comments on commit 759b4f1

@daniel-da

This comment has been minimized.

Copy link

replied May 30, 2017

Hi,
So now CTRL+T and CTRL+U will act as the same, ie stage/unstage depending on focus.
For me it's a little bit confusing since in the Commit Menu we have CTRL+T as a shortcut for staging and CTRL+U for unstaging.
What do you think?

@dscho

This comment has been minimized.

Copy link
Member Author

replied May 31, 2017

For me it's a little bit confusing since in the Commit Menu we have CTRL+T as a shortcut for staging and CTRL+U for unstaging.

Sure, I can see how that is confusing.

What do you think?

I think that this would be a splendid opportunity for somebody who finds this confusing to step in and patch the code and open a Pull Request.

That's what I think.

@daniel-da

This comment has been minimized.

Copy link

replied Jun 1, 2017

Hi,
2 weeks ago I've discovered tcl thing exists :)
I'll try to do my best to help on this thing (and by the way the CTRL-A)
Regards

Please sign in to comment.
You can’t perform that action at this time.