fzf
fzf copied to clipboard
FZF prompt - Pre-select first option instead of the last
- [X] I have read through the manual page (
man fzf
) - [X] I have the latest version of fzf
- [X] I have searched through the existing issues
Info
- OS
- [X] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [X] zsh
- [ ] fish
Problem / Steps to reproduce
In the FZF prompt, is there a way to pre-select the first option instead of the last?
Current behavior:
Desired behavior:
mirror issue: https://github.com/junegunn/fzf.vim/issues/858
I too would like to do the same. Perhaps either of the two may work:
-
A new command line option like
--initial-match=first,last
, wherefirst
is the current default. -
A new action, similar to
change
andbackward-eof
, namedon-load
that executes whenever the finder reloads data. This way, I could do:--bind=on-load:last
or--bind=on-load:first
.
Any way to do this right now @junegunn ?
Using --tac
seq 10 | fzf --tac --layout=reverse --height=~50%
seq 10 | fzf --tac --layout=reverse-list --height=~50%
Ok thanks !!
This issue can be closed then.