-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[git gui] Focus of files listed in "Unstaged Changes" should be possible #859
Comments
The current design of the application has the focus assigned to the commit message text field so what is actually happening is your keystroke was sent to the commit box. If you add to lines into the commit message then click on the files box and use key-up and key-down you'll see the cursor moving in the commit message field. However, permitting keyboard control of the files control seems like a useful and worthwhile enhancement. This is not really a Git for Windows issue though but there's not currently a better place to hold this. Maybe @dscho can assign it to me. |
You might like to try out pt/non-mouse-usage which is a branch to address this. Note you need to use Ctrl-Tab to get out of the commit box as Tab just inserts a tab character. |
Keyboard focus was restricted to the commit message widget and users were forced to use the mouse to select files in the workdir widget and only then could use a key combination to stage the file. It is now possible to use key navigation (Ctrl-Tab, arrow keys and Ctrl-T or Ctrl-U) to stage and unstage files. Suggested by @koppor in git-for-window/git issue #859 Signed-off-by: Pat Thoyts <[email protected]>
Code looks good, but I have to investigate how to build the branch on Windows... |
@koppor maybe this helps? https://github.com/git-for-windows/git/wiki/Building-git |
Works with git 2.11.0.windows.1 🎉 . Thank you for implementing @patthoyts. However, Ctrl + T does not work on multiple entries anymore. Think, I have to submit another issue... 🎱 |
Not yet submitted an issue, but wrote a comment at #1012 (comment) |
or closed issue
matching what I'm seeing. I searched for "Unstaged"
Setup
output of
git version
as well.64-bit
defaults?
Defaults of
choco install git
.Any other interesting things about your environment that might be related
to the issue you're seeing?
No.
Details
Bash and CMD inside ConEmu
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git init
echo "line1" > f1.txt
echo "line1" > f2.txt
git add .
git commit -m"first commit"
echo "line2" >> f1.txt
echo "line2" >> f2.txt
git gui&
f2.txt is focused
Nothing happens
Note: Similar expectations exist for CTRL+T. See http://stackoverflow.com/questions/3535019/git-gui-moving-keyboard-focus-to-changed-files.
The text was updated successfully, but these errors were encountered: