Vscode: SCM: Support past commit messages navigation

Created on 19 May 2017  Â·  14Comments  Â·  Source: microsoft/vscode

  • VSCode Version: 1.13.0-insider
  • OS Version: any

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 https://github.com/Microsoft/vscode/issues/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

feature-request help wanted on-release-notes on-testplan scm

Most helpful comment

Found this extension which do the trick: Git Last Commit Message (GLCM)

All 14 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 HistoryNavigator as in the search widget (SearchWidget -> RepositoryPanel, SearchViewlet -> SCMViewlet, searchActions -> hardcoded keys in RepositoryPanel). But still have no idea how to fix lines movement in editor.
Not sure how should I go about it though. Just fork and make a pr?

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
Problems with it:

  1. ALT-↑ gets intercepted by the editor so I used CTRL-↑;
  2. Don't know how to add a new entry to the history on commit by button above the input.
  3. Hotkeys are hardcoded.
    Any suggestions are welcome.

Can we also track https://github.com/Microsoft/vscode/issues/45204 here? it was marked as duplicate although it isn't.

+1 on this

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

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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  Â·  3Comments

biij5698 picture biij5698  Â·  3Comments

VitorLuizC picture VitorLuizC  Â·  3Comments

omidgolparvar picture omidgolparvar  Â·  3Comments

borekb picture borekb  Â·  3Comments