no flicker

This commit is contained in:
2025-08-01 10:35:47 +02:00
parent d8a01e1079
commit 7381d2432f

View File

@@ -266,6 +266,7 @@ while true; do
sel=$( sel=$(
$0 --internal-list-releasegroups "$2" | $0 --internal-list-releasegroups "$2" |
$FZF \ $FZF \
--no-clear \
--ansi \ --ansi \
--reverse \ --reverse \
--cycle \ --cycle \
@@ -298,6 +299,7 @@ while true; do
sel=$( sel=$(
$0 --internal-list-releases "$2" | $0 --internal-list-releases "$2" |
$FZF \ $FZF \
--no-clear \
--ansi \ --ansi \
--reverse \ --reverse \
--cycle \ --cycle \
@@ -328,6 +330,7 @@ while true; do
sel=$( sel=$(
$0 --internal-list-recordings "$2" | $0 --internal-list-recordings "$2" |
$FZF \ $FZF \
--no-clear \
--ansi \ --ansi \
--reverse \ --reverse \
--cycle \ --cycle \
@@ -347,6 +350,7 @@ while true; do
[ "$lns" -eq 2 ] && [ "$key" = "ctrl-a" ] && set -- "--select-artist" "$(mb_release "$2" | $JQ -r ".media[].tracks[] | select(.id==\"$mid\") | .\"artist-credit\"")" [ "$lns" -eq 2 ] && [ "$key" = "ctrl-a" ] && set -- "--select-artist" "$(mb_release "$2" | $JQ -r ".media[].tracks[] | select(.id==\"$mid\") | .\"artist-credit\"")"
;; ;;
"--select-artist") "--select-artist")
tput rmcup
sel=$( sel=$(
echo "$2" | echo "$2" |
$JQ -r 'map([.artist.id, .artist.type, .name] | join("\t")) | join("\n")' | $JQ -r 'map([.artist.id, .artist.type, .name] | join("\t")) | join("\n")' |
@@ -357,6 +361,7 @@ while true; do
-v format_disambiguation="$AV_DISAMBIGUATION" \ -v format_disambiguation="$AV_DISAMBIGUATION" \
"$AWK_ARTISTS" | "$AWK_ARTISTS" |
$FZF \ $FZF \
--no-clear \
-1 \ -1 \
--ansi \ --ansi \
--cycle \ --cycle \
@@ -375,6 +380,7 @@ while true; do
sel=$( sel=$(
printf "" | printf "" |
$FZF \ $FZF \
--no-clear \
--ansi \ --ansi \
--reverse \ --reverse \
--no-sort \ --no-sort \
@@ -396,8 +402,8 @@ while true; do
lns=$(echo "$sel" | wc -l) lns=$(echo "$sel" | wc -l)
key=$(echo "$sel" | head -1 | tail -1) key=$(echo "$sel" | head -1 | tail -1)
mid=$(echo "$sel" | head -2 | tail -1) mid=$(echo "$sel" | head -2 | tail -1)
[ "$key" = "ctrl-c" ] && exit 0 [ "$key" = "ctrl-c" ] && tput rmcup && exit 0
[ "$key" = "ctrl-q" ] && exit 0 [ "$key" = "ctrl-q" ] && tput rmcup && exit 0
[ "$key" = "tab" ] && set -- "--search-artist" [ "$key" = "tab" ] && set -- "--search-artist"
[ "$lns" -eq 2 ] && [ ! "$key" ] && [ "$mid" ] && set -- "--show-releasegroup" "$mid" [ "$lns" -eq 2 ] && [ ! "$key" ] && [ "$mid" ] && set -- "--show-releasegroup" "$mid"
;; ;;
@@ -405,6 +411,7 @@ while true; do
sel=$( sel=$(
printf "" | printf "" |
$FZF \ $FZF \
--no-clear \
--ansi \ --ansi \
--reverse \ --reverse \
--no-sort \ --no-sort \
@@ -429,8 +436,8 @@ while true; do
lns=$(echo "$sel" | wc -l) lns=$(echo "$sel" | wc -l)
key=$(echo "$sel" | head -1 | tail -1) key=$(echo "$sel" | head -1 | tail -1)
mid=$(echo "$sel" | head -2 | tail -1) mid=$(echo "$sel" | head -2 | tail -1)
[ "$key" = "ctrl-c" ] && exit 0 [ "$key" = "ctrl-c" ] && tput rmcup && exit 0
[ "$key" = "ctrl-q" ] && exit 0 [ "$key" = "ctrl-q" ] && tput rmcup && exit 0
[ "$key" = "tab" ] && set -- "--search-releasegroup" [ "$key" = "tab" ] && set -- "--search-releasegroup"
[ "$lns" -eq 2 ] && [ ! "$key" ] && [ "$mid" ] && set -- "--show-artist" "$mid" [ "$lns" -eq 2 ] && [ ! "$key" ] && [ "$mid" ] && set -- "--show-artist" "$mid"
;; ;;