diff options
author | jao <jao@gnu.org> | 2021-06-13 03:23:16 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-06-13 03:23:16 +0100 |
commit | c3668d39f51e57a28800af7c80ab4d4085250872 (patch) | |
tree | 191d051b2d9ccc99af1229b4de33f34e32994be4 | |
parent | 9a09bf70f2a363c43cd381a2b8968ddfde22e43b (diff) | |
download | elibs-c3668d39f51e57a28800af7c80ab4d4085250872.tar.gz elibs-c3668d39f51e57a28800af7c80ab4d4085250872.tar.bz2 |
keybindings
-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))))) |