lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Add menu item 'Commit without hooks' to the commit menu

Open dafi opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Pressing the keyw or c and entering manually WIP I can "append" the flag --no-verify But the commit message will be saved with the string "WIP" (e.g. "WIP Moved items") and I don't want the prefix to be present on the message (e.g. just "Moved items") I can change the prefix but I simply don't want any prefix string on my commit message.

Describe the solution you'd like When I press c to commit files I can access to a second level menu pressing <c-o>, could be useful to add a new menu item w Commit without hooks (where w is the key) So the command will contain the flag --no-verify and the message contains only what I typed

Describe alternatives you've considered At this time I use a custom command but the prompts "summary" and "description" aren't visible at same time (I love to switch between them using TAB into the commit command) and the user experience is poor My custom command is a dirty workaround not a real solution

dafi avatar May 01 '24 12:05 dafi

Ideally (I guess) we'd have a menu where the user could toggle checkboxes what they do and do not want, e.g. in this case [x] --no-verify, but we don't have something like that in place.

Relevant discussion here.

mark2185 avatar May 01 '24 17:05 mark2185