v0.62.0

junegunn/fzfv0.62.0May 4, 2025by junegunn

AI Summary

Relaxes the `--color` option syntax to allow whitespace separation and introduces striped background colors.

Key Highlights

  • Relaxed `--color` syntax to allow whitespace-separated entries in addition to commas.
  • New `alt-bg` color to create striped lines for visual separation.
  • Fish shell improvements: CTRL-R now triggers in the middle of a command and supports SHIFT-DEL.

New Features

  • Relaxed color syntax (whitespace support)
  • `alt-bg` color

Full Release Notes

- Relaxed the `--color` option syntax to allow whitespace-separated entries (in addition to commas), making multi-line definitions easier to write and read
  ```sh
  # seoul256-light
  fzf --style full --color='
    fg:#616161 fg+:#616161
    bg:#ffffff bg+:#e9e9e9 alt-bg:#f1f1f1
    hl:#719872 hl+:#719899
    pointer:#e12672 marker:#e17899
    header:#719872
    spinner:#719899 info:#727100
    prompt:#0099bd query:#616161
    border:#e1e1e1
  '
  ```
- Added `alt-bg` color to create striped lines to visually separate rows
  ```sh
  fzf --color bg:237,alt-bg:238,current-bg:236 --highlight-line

  declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
    bat --plain --language bash --color always |
    fzf --read0 --ansi --reverse --multi \
        --color bg:237,alt-bg:238,current-bg:236 --highlight-line
  ```
- [fish] Improvements in CTRL-R binding (@bitraid)
    - You can trigger CTRL-R in the middle of a command to insert the selected item
    - You can delete history items with SHIFT-DEL
- Bug fixes and improvements
    - Fixed unnecessary 100ms delay after `reload` (#4364)
    - Fixed `selected-bg` not applied to colored items (#4372)


## Screenshot

<img width="822" alt="image" src="https://github.com/user-attachments/assets/f1dcbdc5-905c-4043-857c-28c75a71d94a" />