Browse Source

fzmp little weaks

pull/6/head
DanielFGray 6 years ago
parent
commit
fe3b71de70
  1. 10
      fzmp

10
fzmp

@ -6,7 +6,7 @@ declare -r c_red="${esc}[31m" @@ -6,7 +6,7 @@ declare -r c_red="${esc}[31m"
declare -r track_format='[[[%artist% / ][[(%date%) ]%album% / ][%track%] - [%title%]]|%file%]'
usage() {
LESS=-EXR less <<'HELP'
LESS=-FEXR less <<'HELP'
fzmp [OPTIONS]
-A --all search all songs in the library (or F1 when running)
@ -44,7 +44,7 @@ has() { @@ -44,7 +44,7 @@ has() {
}
fzf() {
command fzf -e --reverse --cycle +s --inline-info "$@"
command fzf -e -i --reverse --cycle --inline-info "$@"
}
filterAllSongs() {
@ -142,9 +142,6 @@ playSongs() { @@ -142,9 +142,6 @@ playSongs() {
filterPlaylist
}
has -v fzf mpc || die
isRunning mpd || die 'mpd not running'
declare filter='filterAllSongs'
while :; do
case "$1" in
@ -156,4 +153,7 @@ while :; do @@ -156,4 +153,7 @@ while :; do
esac
done
has -v fzf mpc || die
isRunning mpd || die 'mpd not running'
$filter

Loading…
Cancel
Save