Skip to content
Discussion options

You must be logged in to vote

I found the solution. The way fish works is completely different (and I'm not that familiar with it yet). I have an alias like this in Bash:
alias fzf="fzf --bind 'ctrl-d:reload(find . -type d),ctrl-f:reload(eval "$FZF_DEFAULT_COMMAND")' --preview 'bat --color=always --style=numbers --line-range=:500 {}' --tac --exact --bind change:top"
I've partially converted this to work with fish:

function fzf
    command fzf \
        --bind 'ctrl-d:reload(find . -type d)' \
        --bind "ctrl-f:reload(eval $FZF_DEFAULT_COMMAND)" \
        --preview 'cat --color=always --style=numbers --line-range=:500 {}' \
        --tac --exact --bind change:top $argv
end

If I remove the --tac option from here,…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@bitraid
Comment options

bitraid Jun 27, 2026
Collaborator

@og900aero
Comment options

@og900aero
Comment options

Answer selected by og900aero
@bitraid
Comment options

bitraid Jun 28, 2026
Collaborator

@og900aero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants