fzf v0.22.0 Release Notes

Release Date: 2020-08-02 // almost 4 years ago
    • ➕ Added more options for --bind

      • backward-eof event sh # Aborts when you delete backward when the query prompt is already empty fzf --bind backward-eof:abort
      • refresh-preview action sh # Rerun preview command when you hit '?' fzf --preview 'echo $RANDOM' --bind '?:refresh-preview'
      • preview action ```sh # Default preview command with an extra preview binding fzf --preview 'file {}' --bind '?:preview:cat {}'

      # A preview binding with no default preview command # (Preview window is initially empty) fzf --bind '?:preview:cat {}'

      # Preview window hidden by default, it appears when you first hit '?' fzf --bind '?:preview:cat {}' --preview-window hidden

    • ➕ Added preview window option for setting the initial scroll offset

      # Initial scroll offset is set to the line number of each line of
      # git grep output *minus* 5 lines
      git grep --line-number '' |
      fzf --delimiter : --preview 'nl {1}' --preview-window +{2}-5
      
    • ➕ Added support for ANSI colors in --prompt string

    • Smart match of accented characters

      • An unaccented character in the query string will match both accented and unaccented characters, while an accented character will only match accented characters. This is similar to how "smart-case" match works.
    • 🔌 Vim plugin

      • tmux layout option for using fzf-tmux vim let g:fzf_layout = { 'tmux': '-p90%,60%' }