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