v0.56.0

junegunn/fzfv0.56.0Oct 27, 2024by junegunn

Upgrading?

Release notes summary

Introduces visual separation options and UI refinements, including a gap option to display empty lines between items and a noinfo option for preview windows.

Key Highlights

  • Added --gap[=N] option to display empty lines between items
  • Added noinfo option to --preview-window to hide the scroll indicator
  • Includes bug fixes from @LangLangBart, @akinomyoga, and @charlievieth

New Features

  • --gap option
  • noinfo preview window option

Full Release Notes

- Added `--gap[=N]` option to display empty lines between items.
    - This can be useful to visually separate adjacent multi-line items.
      ```sh
      # All bash functions, highlighted
      declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
        bat --plain --language bash --color always |
        fzf --read0 --ansi --reverse --multi --highlight-line --gap
      ```
      <img width="855" alt="image" src="https://github.com/user-attachments/assets/b3d2eaf2-bf44-4e3a-8d7b-9878629dd9be">
    - Or just to make the list easier to read. For single-line items, you probably want to set `--color gutter:-1` as well to hide the gutter.
      ```sh
      fzf --info inline-right --gap --color gutter:-1
      ```
      <img width="855" alt="image" src="https://github.com/user-attachments/assets/113757a1-ccfd-42a6-b946-83533f408e69">
- Added `noinfo` option to `--preview-window` to hide the scroll indicator in the preview window
- Bug fixes
    - Thanks to @LangLangBart, @akinomyoga, and @charlievieth for fixing the bugs

Related Repositories