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

Allow ctrl-z to suspend lazygit #3906

Open
ricardoseriani opened this issue Sep 11, 2024 · 1 comment
Open

Allow ctrl-z to suspend lazygit #3906

ricardoseriani opened this issue Sep 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ricardoseriani
Copy link

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>
@ricardoseriani ricardoseriani added the enhancement New feature or request label Sep 11, 2024
@terminalzeiro
Copy link

interesting suggestion.

@ricardoseriani in the meantime, use dislocate -escape '^Z' lazygit 12

Footnotes

  1. dislocate(1) is a old expect script, it just works

  2. ^Z is a "ctrl-z character", ascii 0x1A, which can usually be obtained by typing ctrl-v ctrl-z

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