Add an Option to Clear the Commit Message Input in Lazygit #4682
mchhil-incomm
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
That's not quite true, you can also press ctrl-u repeatedly (or ctrl-k, depending on whether the cursor is at the beginning or end of the message). That's quite a bit faster than using backspace. But yes, a command to clear the message could be helpful. I guess the place to add this is in the ctrl-o menu, next to the "Paste commit message from clipboard" command. Shouldn't be hard to add if anybody wants to work on this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no explicit way to clear the commit description message once entered into the commit input buffer in Lazygit. If a user opens the commit message input (c), types something, and decides they want to cancel or clear the draft, the only options are to backspace manually or exit the screen (via Esc or Ctrl+C), which doesn’t clearly discard the draft message.
This is unintuitive for users who want to:
• Abandon a commit message draft quickly
• Start fresh when editing a long message
• Avoid accidentally committing stale or partial messages
Request is to Add a keybinding “clear the commit message input”
Beta Was this translation helpful? Give feedback.
All reactions