Browse Source

Updated fzmp

DanielFGray 1 year ago
parent
commit
113ed5ec1e
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      fzmp

+ 8
- 4
fzmp View File

@@ -36,8 +36,8 @@ declare track_format='[[[%artist% / ][[(%date%) ]%album% / ][[%track% - ][%title
36 36
 declare -a config_err
37 37
 
38 38
 declare playlist_view_key='f1'
39
-declare artist_view_key='f2'
40
-declare track_view_key='f3'
39
+declare track_view_key='f2'
40
+declare artist_view_key='f3'
41 41
 declare genre_view_key='f4'
42 42
 declare findadd_key='ctrl-x'
43 43
 
@@ -88,7 +88,11 @@ has() {
88 88
 }
89 89
 
90 90
 fzf() {
91
-  command fzf ${FZMP_FZF_OPTIONS:-+s -e -i --reverse --cycle} --inline-info --ansi "$@"
91
+  command fzf ${FZMP_FZF_OPTIONS:-+s -e -i --reverse --cycle} \
92
+    --inline-info \
93
+    --ansi \
94
+    --no-clear \
95
+    "$@"
92 96
 }
93 97
 
94 98
 parse_config_file() {
@@ -221,7 +225,7 @@ filter_by_album_from_artist() {
221 225
     "$track_view_key") filter_all_songs ;;
222 226
     "$genre_view_key") filter_by_genre ;;
223 227
     'enter') filter_songs_from_album "$artist" "${choice[1]}" ;;
224
-    "$findadd_key") mpc findadd album "${choice[1]}" ;;
228
+    "$findadd_key") mpc findadd album "${choice[1]}"; filter_by_album_from_artist "$artist" ;;
225 229
     *) filter_by_artist ;;
226 230
   esac
227 231
 }

Loading…
Cancel
Save