jump to views

This commit is contained in:
2025-09-04 23:05:34 +02:00
parent e90cdda8b7
commit 45d75fe9cc
2 changed files with 12 additions and 0 deletions

View File

@@ -437,6 +437,10 @@ $KEYS_FILTER_LOCAL:transform:$0 --fzf-key {2} {3} {4}" \
--bind="$KEYS_N_IN:transform:$IN_NORMAL_MODE && ([ {3} ] && $0 --draw \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {3} \"+1\") || $PUT_FZF_KEY_LOGIC" \ --bind="$KEYS_N_IN:transform:$IN_NORMAL_MODE && ([ {3} ] && $0 --draw \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {3} \"+1\") || $PUT_FZF_KEY_LOGIC" \
--bind="$KEYS_N_OUT:transform:$IN_NORMAL_MODE && ([ {2} ] && $0 --draw \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {2} \"-1\") || $PUT_FZF_KEY_LOGIC" \ --bind="$KEYS_N_OUT:transform:$IN_NORMAL_MODE && ([ {2} ] && $0 --draw \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {2} \"-1\") || $PUT_FZF_KEY_LOGIC" \
--bind="$KEYS_JUMPTO_ARTIST:transform:$0 --jumpto-artist \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {2} {3}" \ --bind="$KEYS_JUMPTO_ARTIST:transform:$0 --jumpto-artist \$FZF_INPUT_STATE \$FZF_BORDER_LABEL {2} {3}" \
--bind="$KEYS_JUMPTO_LIST_ARTISTS:transform:$0 --draw \$FZF_INPUT_STATE $VIEW_LIST_ARTISTS" \
--bind="$KEYS_JUMPTO_LIST_ALBUMS:transform:$0 --draw \$FZF_INPUT_STATE $VIEW_LIST_ALBUMS" \
--bind="$KEYS_JUMPTO_SEARCH_ARTIST:transform:$0 --draw $MODE_INSERT $VIEW_SEARCH_ARTIST" \
--bind="$KEYS_JUMPTO_SEARCH_ALBUM:transform:$0 --draw $MODE_INSERT $VIEW_SEARCH_ALBUM" \
--bind="$KEYS_BROWSE:execute-silent: --bind="$KEYS_BROWSE:execute-silent:
[ {3} ] || exit 0 [ {3} ] || exit 0
case \"\$FZF_BORDER_LABEL\" in case \"\$FZF_BORDER_LABEL\" in

View File

@@ -21,6 +21,10 @@
# - $KEYS_N_OUT: Leave current item, up the hierarchy (normal mode) # - $KEYS_N_OUT: Leave current item, up the hierarchy (normal mode)
# - $KEYS_JUMPTO_ARTIST: Go to artist of selected entry (in case of multiple # - $KEYS_JUMPTO_ARTIST: Go to artist of selected entry (in case of multiple
# artists, provide a choice) # artists, provide a choice)
# - $KEYS_JUMPTO_LIST_ARTISTS: Go to VIEW_LIST_ARTISTS
# - $KEYS_JUMPTO_LIST_ALBUMS: Go to VIEW_LIST_ALBUMS
# - $KEYS_JUMPTO_SEARCH_ARTIST: Go to VIEW_SEARCH_ARTIST
# - $KEYS_JUMPTO_SEARCH_ALBUM: Go to VIEW_SEARCH_ALBUM
# #
# Filtering: # Filtering:
# #
@@ -51,6 +55,10 @@ KEYS_OUT="${KEYS_OUT:-"ctrl-h"}"
KEYS_N_IN="${KEYS_N_IN:-"l"}" KEYS_N_IN="${KEYS_N_IN:-"l"}"
KEYS_N_OUT="${KEYS_N_OUT:-"h"}" KEYS_N_OUT="${KEYS_N_OUT:-"h"}"
KEYS_JUMPTO_ARTIST="${KEYS_JUMPTO_ARTIST:-"ctrl-a"}" KEYS_JUMPTO_ARTIST="${KEYS_JUMPTO_ARTIST:-"ctrl-a"}"
KEYS_JUMPTO_LIST_ARTISTS="${KEYS_JUMPTO_LIST_ARTISTS:-"alt-a"}"
KEYS_JUMPTO_LIST_ALBUMS="${KEYS_JUMPTO_LIST_ALBUMS:-"alt-s"}"
KEYS_JUMPTO_SEARCH_ARTIST="${KEYS_JUMPTO_SEARCH_ARTIST:-"alt-z"}"
KEYS_JUMPTO_SEARCH_ALBUM="${KEYS_JUMPTO_SEARCH_ALBUM:-"alt-x"}"
# ... # ...