play hook on releases view
This commit is contained in:
@@ -246,7 +246,7 @@ if [ "${1:-}" = "--internal-list-releases" ]; then
|
||||
sort -n -r |
|
||||
cut -d "$(printf '\t')" -f 2- |
|
||||
column -t -s "$(printf '\t')" |
|
||||
sed 's| \+\([0-9a-f-]\+\)$|\t\1|'
|
||||
sed 's| \+\([0-9a-f-]\+\) \+\([^ ].*$\)$|\t\1\t\2|'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -370,7 +370,7 @@ if [ "${1:-}" = "--internal-list-local-releases" ]; then
|
||||
sort -n -r |
|
||||
cut -d "$(printf '\t')" -f 2- |
|
||||
column -t -s "$(printf '\t')" |
|
||||
sed 's| \+\([0-9a-f-]\+\)$|\t\1|'
|
||||
sed 's| \+\([0-9a-f-]\+\) \+\([^ ].*$\)$|\t\1\t\2|'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -449,6 +449,8 @@ while true; do
|
||||
--with-nth="{1}" \
|
||||
--expect="ctrl-h,ctrl-a" \
|
||||
--bind="load:transform:[ \"\$FZF_TOTAL_COUNT\" -gt 0 ] && echo \"rebind:ctrl-l\" || echo \"unbind:ctrl-l\"" \
|
||||
--bind="enter:transform:echo \"play {}\" >> /tmp/foo" \
|
||||
--bind="focus:transform:[ {3} ] && echo \"rebind:enter\" || echo \"unbind:enter\"" \
|
||||
--bind="ctrl-l:accept" \
|
||||
--bind="alt-b:execute-silent:xdg-open 'https://musicbrainz.org/release/{r2}' &" \
|
||||
--bind="ctrl-d:half-page-down,ctrl-u:half-page-up"
|
||||
|
Reference in New Issue
Block a user