diff options
-rw-r--r-- | init.org | 5 | ||||
-rw-r--r-- | lib/media/jao-mpc.el | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -3047,9 +3047,10 @@ ("n" jao-player-next "next") ("p" jao-player-previous "previous") ("s" (espotify-play-pause) "toggle spotify")) - "Seek" + "Seek and search" (("f" (jao-player-seek 10) "seek fwd" :color red) - ("F" (jao-player-seek -10) "seek bwd" :color red)) + ("F" (jao-player-seek -10) "seek bwd" :color red) + ("a" jao-mpc-select-album "select album")) "Browse" (("b" jao-player-browse "browse") ("l" jao-player-list "show play list") diff --git a/lib/media/jao-mpc.el b/lib/media/jao-mpc.el index 2ad27a4..c610c2a 100644 --- a/lib/media/jao-mpc.el +++ b/lib/media/jao-mpc.el @@ -256,9 +256,9 @@ "-f '%album% - %artist%' find \"(ALBUM =~ '.*')\" | uniq") ;;;###autoload -(defun jao-mpc-select-album () - (interactive) - (let ((albums (or jao-mpc--album-titles +(defun jao-mpc-select-album (refresh) + (interactive "P") + (let ((albums (or (and (not refresh) jao-mpc--album-titles) (setq jao-mpc--album-titles (split-string (jao-mpc--cmd jao-mpc--albums-cmd) "\n" t))))) |