summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-01-27 02:08:49 +0000
committerjao <jao@gnu.org>2021-01-27 02:08:49 +0000
commitfd22a13099db88c212cfc7daabf4b9dbe2edfd7e (patch)
tree14939ce1a50a8f9bab8f46a2a556003e343c7a13
parent31f89b465f6721ee18bdc220470b5b54a4de633e (diff)
downloadelibs-fd22a13099db88c212cfc7daabf4b9dbe2edfd7e.tar.gz
elibs-fd22a13099db88c212cfc7daabf4b9dbe2edfd7e.tar.bz2
espotify: consult-async-default-split is the obvious search trigger
-rw-r--r--media/espotify.org8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/espotify.org b/media/espotify.org
index b50fcda..93338a9 100644
--- a/media/espotify.org
+++ b/media/espotify.org
@@ -301,7 +301,7 @@ Let's start with an umbrella customization group:
:lookup 'espotify--consult-lookup
:category 'espotify-search-item
:history 'espotify-consult-history
- :initial "#"
+ :initial consult-async-default-split
:require-match t)))
#+end_src
@@ -362,6 +362,12 @@ Let's start with an umbrella customization group:
((>= (string-distance prev new) espotify-search-threshold) new))))
#+end_src
+ In the consult case, a more natural choice for the search suffix is
+
+ #+begin_src emacs-lisp
+ (setq espotify-search-suffix consult-async-default-split)
+ #+end_src
+
When processing the results, we format them as a displayable
string, while hiding in a property the URI that will allow us to
play the item (and pass the formatter to ~consult-async--map~, in