Replies: 2 comments
-
What exact values of |
Beta Was this translation helpful? Give feedback.
0 replies
-
As noted above, the following works for me: just --choose --chooser "fzf --multi --preview 'just --show {} | bat --color=always -l just -pp'" My preference is to use a custom _choose:
@just --summary | \
tr ' ' '\n' | \
sort -r | \
fzf --multi --preview 'just --show {} | bat --color=always -l just -pp' | \
xargs just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to pimp
just --choose
to get syntax highlighting in the preview.fzf
is installed on my system but I can't figure out how to set the JUST_CHOOSER environment variable in a way that a tool likebat
orhighlight
is used in conjunction withfzf
to show syntax coloring.My configuration of
bat
supports Justfile syntax.If I pipe to
bat
orhighlight
manually it works. E.g.:Has anyone ever successfully done this and could give me a hint how to set
JUST_CHOOSER
?Beta Was this translation helpful? Give feedback.
All reactions