1
1
Atdalīts 0
Pārlūkot izejas kodu

fzmp: fix song and genre listing

pull/17/merge
DanielFGray pirms 2 gadiem
vecāks
revīzija
76047f165d
  1. 4
      fzmp

4
fzmp

@ -207,7 +207,7 @@ parse_config_file() { @@ -207,7 +207,7 @@ parse_config_file() {
filter_by_songs() {
local choice
mapfile -t choice < <(mpc find -f "%file%\t$track_format" filename '' |
mapfile -t choice < <(mpc search -f "%file%\t$track_format" filename '' |
fzf --prompt='songs > ' \
--multi \
--with-nth='2..' \
@ -223,7 +223,7 @@ filter_by_songs() { @@ -223,7 +223,7 @@ filter_by_songs() {
filter_by_genres() {
local choice
mapfile -t choice < <(mpc find -f '%genre%' genre '' |
mapfile -t choice < <(mpc search -f '%genre%' genre '' |
awk 'NF' | sort | uniq -c | sort -rn |
fzf --prompt='genres > ' \
--preview='mpc find -f "%artist%" genre {2..} | sort -u' \

Notiek ielāde…
Atcelt
Saglabāt