How to keep cursor in highlighted line and clear query? #3443
-
I want to type a word for example "mango", fzf will show results matching "mango", Now I want to press a key, this'll clear the query so all results are being shown now, but I want the highlighted / selected line to stay so my cursor is in "mango" line, and I can see the before / after lines of "mango", and I can up-down arrow to navigate around here. What I tried:
This clears query, but returns marker to initial position :( |
Beta Was this translation helpful? Give feedback.
Answered by
LangLangBart
Sep 23, 2023
Replies: 1 comment 1 reply
-
echo {A..D}{1..4} | tr ' ' '\n' | fzf --query 'B1' --track
echo {A..D}{1..4} | tr ' ' '\n' | fzf --query 'B1' --bind 'tab:track+clear-query' |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sarim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--track
flagtrack
action