jesseduffield / jesseduffield/lazygit

global: search `/` how to jump to / stop at first / last match?

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

Description

**Is your feature request related to a problem? Please describe.**
i want to be able to reach the ends (first / last) of the match in search `/`.
press and holding `nN` (next/previous) wraps around and keeps cycling on all the matches.

title(s):
* global: search `/` how to jump to / stop at first / last match?
* global: search `/` should stop at ends on press-and-hold `nN`

**Describe the solution you'd like**
on press-and-hold, the highlighting should stop on ends. to wrap-around the search, it should require to reinitiate the trigger i.e. release the press-and-hold, then press again.

**Describe alternatives you've considered**
maybe some modifier key combo with `nN` to jump to first/last match would both be conceptually and implementationally easier?

**Additional context**

```console
$ lazygit --version | cut -f 3-7 -d ',' --output-delimiter=$'\n' | column --table --separator =
build source nix
version 0.52.0
os linux
arch amd64
git version 2.49.0
```

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.