imprv: prompts

This commit is contained in:
2025-07-22 16:28:49 +02:00
parent 8e9ae45724
commit 20152a368e
2 changed files with 14 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ while true; do
--ansi \
--reverse \
--delimiter="\t" \
--prompt="$(printf "$ARTIST_PROMPT" "$3")" \
--accept-nth="{2}" \
--with-nth="{1}"
)
@@ -150,13 +151,14 @@ while true; do
--no-sort \
--disabled \
--delimiter="\t" \
--accept-nth="{1}" \
--prompt="$SEARCH_PROMPT" \
--accept-nth="{1} {2}" \
--with-nth="{2}" \
--preview-window="wrap" \
--preview="$0 --internal-preview-artist {1}" \
--bind="change:execute-silent($0 --internal-search \$FZF_QUERY &)+reload($0 --internal-reload)"
)
[ "$sel" ] && set -- "--show-artist" "$sel"
[ "$sel" ] && set -- "--show-artist" "$(echo "$sel" | cut -d " " -f 1)" "$(echo "$sel" | cut -d " " -f2-)"
;;
esac
done