Skip to content

Allow ctrl-z to suspend lazygit #3906

@ricardoseriani

Description

@ricardoseriani

Is your feature request related to a problem? Please describe.
Cannot suspend lazygit using ctrl-z

Describe the solution you'd like
Provide a way to disable the ctrl-z keybinding to Redo, and allow the command to send lazygit to background.

Describe alternatives you've considered
I cannot think of any alternative way to do this, but if there is some, please let me known.

Additional context
The majority of software that run on Linux terminal allow the use of ctrl-z to suspend the current software, allowing to run fg or bg commands to continue the software on foreground or background.

But, currently, the ctrl-z keybinding is tied to Redo.
Even if I try to remap the Redo command using the .config/lazygit/config.yml like the following, I cannot run ctrl-z to suspend lazygit


keybinding:
  universal:
    redo: <c-g>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions