-
Notifications
You must be signed in to change notification settings - Fork 30.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
SCM: Support past commit messages navigation #26952
Comments
Even worse, when you (cursor) are in the scm's "Message" input and press ALT-↑ as you are used to it from search input then the text lines in the editor are moved (changed) albeit the text editor is not focussed. To me this makes it an UX bug not just a feature request. |
I think I can implement it for commit message input using |
This issue is related to #29445 (request for a way to get the last commit message). |
Created a branch: https://github.com/grabantot/vscode/tree/26952-commit-message-history
|
Can we also track #45204 here? it was marked as duplicate although it isn't. |
Any reason why you don't make a PR with that change @grabantot ? I didn't test it but this feature would be quite useful as i usually have to re-type the ticket number when there's JIRA integration :/ |
+1 |
1 similar comment
+1 |
Until this is implemented, the SCM integration of VSCode is not really usable. |
sorry. I don't see a way I can do this in foreseeable future. The job and my own projects take too much time. Anyone who is willing to work on the issue is welcome to use my pr in any way that helps |
+1 |
+1 |
Found this extension which do the trick: Git Last Commit Message (GLCM) |
This feature is extremely annoying, specially on projects that require long commit messages (co-authors, etc). |
@zbianca for me the message changes to previous/next only when the caret is on the very start/end. else the arrow keys (up/down) work as usual.. |
@djbrown And when you're in the middle of the first line what does the up-arrow do? On my setup (VSCode on Mac) one press it goes to the beginning of the line and then on the second it goes to the next commit. Now my question to you is: when you navigate a long text, do you count how many times to press the arrows? Or do you hold the keys and have an intuition (internal calculation of speed) of when to stop pressing the key? I can only suposse the use case for longer commit messages was not tested enough (usability). |
Before this I was using the extension mentioned here. Maybe instead of the arrows something like this can be used. |
The implementation that got released is very disruptive -- now when I use the up arrow to go up to edit the first line of a commit, I almost always overshoot and it starts cycling through commit history. It should not cycle history on a simple Up arrow with no modifier key, at least not when the commit message edit box is dirty. This should look and feel like a normal edit box, unless the user does exceptional things. Pressing a simple Up arrow key is not an exceptional gesture, but for example pressing Alt+Up would be exceptional because it's not a key combination normally recognized by edit boxes. |
This is a feature request.
In the search boxes (both local and multifile) you can use ALT-↑ to navigate through your search history. I suggest the same is implemented for the commit message box in the git sidebar. This should be no cheap
git log
substitute - you should only see the (last X?) commit messages you have entered yourself on that machine, in the order in which you have entered them. Just a local history of what was entered in that box.This is somewhat similar to #6190, but different - it has no relation to undoing a commit, it should be there in the commit message box even if there is nothing to commit.
Thanks
The text was updated successfully, but these errors were encountered: