summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org5
1 files changed, 5 insertions, 0 deletions
diff --git a/completion.org b/completion.org
index af9bca4..9c8362b 100644
--- a/completion.org
+++ b/completion.org
@@ -483,8 +483,13 @@
*** spotify
#+begin_src emacs-lisp
(with-eval-after-load "consult-spotify"
+ (defun jao-consult-spt-play (candidate)
+ (when-let (url (espotify-candidate-url candidate))
+ (jao-spt-play-uri url)))
+
(embark-define-keymap spotify-item-keymap
"Actions for Spotify search results"
+ ("s" jao-consult-spt-play)
("y" espotify-yank-candidate-url)
("a" espotify-play-candidate-album)
("h" espotify-show-candidate-info))