Replies: 2 comments 4 replies
-
Alternative solution: set the For me it brings up |
Beta Was this translation helpful? Give feedback.
-
I was a long-time user of git gui in a previous life (and then of Fork later, which has a very similar UI), so I can relate to what you are suggesting. However, I do agree that it would be a lot of work, and I'm not totally sure it's worth the effort. But then, lazygit isn't that far away already. It remembers an unfinished commit message, so what I often do is begin writing a message, hit Esc to close the editor to browse the diffs some more, then hit |
Beta Was this translation helpful? Give feedback.
-
For complex commits, it's useful to be able to browse the list of files and their diffs while writing the commit message, to remind myself what's been included in the commit.
For bonus points, it's useful to be able to stage files while writing the commit message: you can use it as a checklist to make sure that you haven't missed anything.
git gui
handles this nicely: there's a "commit message" box at the bottom of the screen which you can dip in and out of while doing other work, then an option to commit with that message:When you opt to amend the previous commit, the box pre-populates with the previous commit message, which gives a nice way to edit the previous commit's contents and message at the same time.
A similar flow in lazygit could have the "commit" option focus a pane in the lower right, rather than having a dialog box pop up, perhaps? This pane could be visible while it has content, and hidden otherwise. "esc" returns focus back to the file pane, and "enter" commits as normal.
I appreciate this is probably a fair chunk of work, and people seem happy with the commit dialog as it is. If there's general support, I'd be happy to have a stab at implementing this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions