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