bugfix and open key
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user