git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: feature request, git-gui: add hotkey to toggle amend/new

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Sep 3, 2019, 17:34 UTC
Message-ID
<20190903173418.32hqxfzr7wajtikx@yadavpratyush.com>
In-Reply-To
<CAGr--=JaTvZ_mUK5+dW6eM3-71ROUR4c58TF9G=-jAw3GDzYTQ@mail.gmail.com>
On 03/09/19 04:06PM, Birger Skogeng Pedersen wrote:
Show 9 quoted lines
> Hi Pratyush,
> 
> 
> On Tue, Sep 3, 2019 at 2:45 PM Pratyush Yadav <me@yadavpratyush.com> wrote:
> > Can you try doing a Shift+Tab? For me on Linux, if I hit Shift+Tab, it
> > immediately takes me to the "Amend last commit" option. Then I can press
> > space to select it and Tab again to get back to the commit message.
> 
> It seems that Shift+Tab doesn't do anything (on Windows 10).
Ah, too bad.
Show 9 quoted lines
> Regardless, imo there should be a binding dedicated to toggle amend.
> 
> > Also, since we are on this topic, how about making the "Amend last
> > commit" button a toggle instead? This would act as a "turn amend mode
> > on/off" button. Since "Amend last commit" and "New Commit" are mutually
> > exclusive, a single toggle to switch between those modes makes sense to
> > me.
> 
> I assume you're talking about the button in the "Commit" dropdown

Yes. That one and the two tick boxes on the top right of the commit message buffer/editor.

Show 6 quoted lines
> menu. I agree, it could be just a single entry which is a toggle to
> enable/disable amending. And (above the commit message dialog) perhaps
> just a single checkbox; "Amend Last Commit". In other git GUIs (Git
> Cola and TortoiseGit) I see they're using just a single checkbox for
> this option. But maybe that is a slightly different topic, the hotkey
> behaviour would remain the same.

Yes, of course your patch is independent of the two-button behaviour. I was just pointing it out to see how others feel about it.

Show 8 quoted lines
> 
> 
> > ... do you still feel the need for a dedicated binding for amends?
> 
> How do you guys feel about it? So far it seems we're at two "yay" and
> one "nay". I really feel it is in the best interest of the git-gui
> project to implement this hotkey. And not just because it is my
> personal preference to have it :-)

Well, I do think amending commits is a common enough operation to warrant a dedicated keyboard binding for it. So it is a "yay" for this feature from my side at least.

-- 
Regards,
Pratyush Yadav
Previous: Birger Skogeng PedersenNext: David
Message 14 of 27 in “feature request, git-gui: add hotkey to toggle amend/new”
  1. Birger Skogeng PedersenAug 31, 2019
  2. Birger Skogeng PedersenSep 2, 2019
  3. Bert WesargSep 2, 2019
  4. Birger Skogeng PedersenSep 2, 2019
  5. Add hotkey to toggle "Amend Last Commit" radio selectorBirger Skogeng Pedersen, Sep 2, 2019
  6. Bert WesargSep 3, 2019
  7. Bert WesargSep 3, 2019
  8. Bert WesargSep 3, 2019
  9. Bert WesargSep 2, 2019
  10. Bert WesargSep 2, 2019
  11. Birger Skogeng PedersenSep 3, 2019
  12. Pratyush YadavSep 3, 2019
  13. Birger Skogeng PedersenSep 3, 2019
  14. Pratyush YadavSep 3, 2019
  15. DavidSep 3, 2019
  16. Pratyush YadavSep 3, 2019
  17. Johannes SixtSep 4, 2019
  18. Pratyush YadavSep 4, 2019
  19. Birger Skogeng PedersenSep 4, 2019
  20. Johannes SixtSep 4, 2019
  21. Bert WesargSep 4, 2019
  22. David AguilarSep 10, 2019
  23. Birger Skogeng PedersenSep 11, 2019
  24. Pratyush YadavSep 11, 2019
  25. Pratyush YadavSep 11, 2019
  26. DavidSep 3, 2019
  27. Bert WesargSep 3, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.