bugfix and open key

This commit is contained in:
2025-09-02 14:07:14 +02:00
parent 0ba9ec2932
commit 872cb3a741
4 changed files with 17 additions and 8 deletions

View File

@@ -271,6 +271,13 @@ fzf_handle_key() {
case ",$KEYS_HALFPAGE_UP," in
*",$FZF_KEY,"*) printf "half-page-up" ;;
esac
case ",$KEYS_OPEN," in
*",$FZF_KEY,"*)
[ "$path" ] || return 0
open "$(dirname "$path")"
return 0
;;
esac
case ",$KEYS_BROWSE," in
*",$FZF_KEY,"*)
[ "$mbid" ] || return 0
@@ -314,10 +321,10 @@ fzf_handle_key() {
"$VIEW_LIST_ARTISTS" | "$VIEW_SEARCH_ARTIST")
VIEW_NEXT="$VIEW_ARTIST"
;;
"$VIEW_ARTIST" | "$VIEW_SEARCH_ALBUM")
"$VIEW_ARTIST" | "$VIEW_SEARCH_ALBUM" | "$VIEW_LIST_ALBUMS")
VIEW_NEXT="$VIEW_RELEASEGROUP"
;;
"$VIEW_RELEASEGROUP" | "$VIEW_LIST_ALBUMS")
"$VIEW_RELEASEGROUP")
VIEW_NEXT="$VIEW_RELEASE"
;;
esac
@@ -477,10 +484,10 @@ fzf_handle_key() {
"$VIEW_LIST_ARTISTS" | "$VIEW_SEARCH_ARTIST")
VIEW_NEXT="$VIEW_ARTIST"
;;
"$VIEW_ARTIST" | "$VIEW_SEARCH_ALBUM")
"$VIEW_ARTIST" | "$VIEW_SEARCH_ALBUM" | "$VIEW_LIST_ALBUMS")
VIEW_NEXT="$VIEW_RELEASEGROUP"
;;
"$VIEW_RELEASEGROUP" | "$VIEW_LIST_ALBUMS")
"$VIEW_RELEASEGROUP")
VIEW_NEXT="$VIEW_RELEASE"
;;
esac