lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

`:`, `n` keys don't work immediately after starting lazygit

Open gentzeng opened this issue 2 years ago • 3 comments

Describe the bug When starting lazygit, I cannot use the : nor the n key to open the custom command/new branch context. However, when I change the repo with ctrl-r, enter and then swich immediately back to the first repo, again by typing ctrl-r, enter, the : and n key suddenly work.

To Reproduce

  1. type lazygit into console.
  2. type :/n -> does not work
  3. type ctrl-r to open repo change context
  4. type enter
  5. type ctrl-r to open repo change context to switch back
  6. type enter
  7. :/n now works

Expected behavior Typing :/n directly after starting lazygit opens the custom command/new branch context immediately

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • lazygit -v gives me commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64
  • installed with go install github.com/jesseduffield/lazygit@latest, [email protected] in go pkg directory

gentzeng avatar Jul 22 '22 17:07 gentzeng

Could you try a different terminal emulator?

I tried reproducing it within ubuntu:22.10 docker, but couldn't, does it happen for you there as well?

mark2185 avatar Jul 22 '22 20:07 mark2185

The issue occurs in gnome-terminal, xterm, guake.

gentzeng avatar Jul 22 '22 20:07 gentzeng

Does this happen with the US keyboard layout?

mark2185 avatar Jul 25 '22 06:07 mark2185