Skip to content

Remember commit message for current branch when closing / re-opening Lazygit #2720

Closed
@lougreenwood

Description

@lougreenwood

Is your feature request related to a problem? Please describe.
I use Lazygit in nvim using toggleterm.

Often I try to commit and I get a pre-commit hook error from some linter, so I need to close the lazygit float term, fix the error and re-open it. When I re-open lazy got my old commit message is gone, so I need to re-type it again.

Describe the solution you'd like
If Lazygit could remember the commit message for the current branch until that commit is successful it would improve my workflow. The MacOS Git GUI app, Fork has a similar feature which saves the commit message, this is where my inspiration came from.

I would guess that Lazygit could forget the commit message if all changes are discarded.

Describe alternatives you've considered
setting up nvim-remote so I don't need to close the toggle term, but this seems like a work around for this solution, I imagine that my use case isn't the only one which would benefit from lazygit remembering the commit message.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions