junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
61.81k stars 2.35k forks source link

Select candidate if it's multi lines? #3900

Closed tmpm697 closed 5 days ago

tmpm697 commented 5 days ago

Checklist

Output of fzf --version

0.53

OS

Shell

Problem / Steps to reproduce

Say I have a list candidates of mixed one line and multi lines (multi lines ended with NUL char),

declare -f |
  perl -0 -pe 's/^}\n/}\n\0/gm' |
  bat --plain --language bash --color always |
  fzf --read0 --ansi --layout reverse --multi --highlight-line

Output of declare -f is a mixed of one line and multi lines candidates.

How to check focus line while running fzf, to see if it's multi lines or not, if yes then select it?

tmpm697 commented 5 days ago

https://github.com/junegunn/fzf/issues/3901