jesseduffield / jesseduffield/lazygit

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

Open
#2,049 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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.
1. type `:`/`n` -> does not work
1. type `ctrl-r` to open repo change context
1. type `enter`
1. type `ctrl-r` to open repo change context to switch back
1. type `enter`
1. `:`/`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`, lazygit@v0.35.0 in go pkg directory

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.