Skip to content

Commit ff3e9c5

Browse files
committed
[Search Git Status] exclude git status code from fzf search scope
Exclude status codes to avoid false matches, e.g. if typing in d, then all deleted files get matched. Additionally, the status code changes color when highlighted so can be confusing.
1 parent 6f50cc1 commit ff3e9c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/_fzf_search_git_status.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function _fzf_search_git_status --description "Search the output of git status.
1010
--prompt="Search Git Status> " \
1111
--query=(commandline --current-token) \
1212
--preview='_fzf_preview_changed_file {}' \
13+
--nth="2.." \
1314
$fzf_git_status_opts
1415
)
1516
if test $status -eq 0

0 commit comments

Comments
 (0)