MusicBrainz search
This commit is contained in:
10
src/main.sh
10
src/main.sh
@@ -198,6 +198,13 @@ case "${1:-}" in
|
||||
"$VIEW_LIST_ARTISTS" | "$VIEW_SEARCH_ARTIST") printf "+show-preview" ;;
|
||||
*) printf "+hide-preview" ;;
|
||||
esac
|
||||
# Handle MusicBrainz search views
|
||||
# - `change` trigger for async. MusicBrainz search
|
||||
# - input visible but search disabled
|
||||
case "$view" in
|
||||
"$VIEW_SEARCH_ARTIST" | "$VIEW_SEARCH_ALBUM") printf "+rebind(change)+disable-search" ;;
|
||||
*) printf "+unbind(change)+enable-search" ;;
|
||||
esac
|
||||
# Load lines
|
||||
printf "+reload($0 --lines %s %s)" "$view" "$mbid"
|
||||
[ "$mode" = "$MODE_NORMAL" ] && printf "+hide-input"
|
||||
@@ -220,7 +227,7 @@ case "${1:-}" in
|
||||
exit 0
|
||||
;;
|
||||
"--fzf-change")
|
||||
fzf_handle_change
|
||||
fzf_handle_change "$2"
|
||||
exit 0
|
||||
;;
|
||||
"--fzf-key")
|
||||
@@ -488,6 +495,7 @@ open \"\$(dirname {4})\"" \
|
||||
--bind="$KEYS_PLAY:" \
|
||||
--bind="$KEYS_QUEUE:" \
|
||||
--bind="$KEYS_SHOW_PLAYLIST:" \
|
||||
--bind="change:execute-silent($0 --fzf-change $FZF_CURRENT_VIEW &)+reload:$0 --fzf-change-reload" \
|
||||
--preview-window="right,25%,border-left,wrap,<30(hidden)" \
|
||||
--preview="$0 --preview-artist {3}" \
|
||||
--delimiter="\t" \
|
||||
|
Reference in New Issue
Block a user