Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dafi opened this issue May 1, 2024 · 1 comment
Open

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

dafi opened this issue May 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dafi
Copy link

dafi commented May 1, 2024

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 dafi added the enhancement New feature or request label May 1, 2024
@mark2185
Copy link
Collaborator

mark2185 commented May 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants