So :execute() output no longer can be captured since 0.53.0 what's the new ideomatic way to achieve following? #3844
Answered
by
junegunn
EnergoStalin
asked this question in
Q&A
-
Your suggestions how to achieve similar behaviour to this command. LINK=$(
cat $TEMP | jq '.[].Name' | \
fzf --preview='cat '"$TEMP"' | jq -r ".[{n}]"' \
--bind "enter:execute(cat '"$TEMP"' | jq -r '.[{n}].Torrent')+abort"
) Would result in empty string captured and torrent url printed directly into tty as stated in changelog. I come up with this solution using new --multi option but it's suboptimal i want to see just names in selection list having whole object as output. LINK=$(
cat $TEMP | jq --raw-output0 '.[]' | \
fzf \
--read0 \
--multi \
--highlight-line | \
jq -r '.Torrent'
) |
Beta Was this translation helpful? Give feedback.
Answered by
junegunn
Jun 9, 2024
Replies: 1 comment 1 reply
-
Replace execute+abort with become. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EnergoStalin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace execute+abort with become.