From fd22a13099db88c212cfc7daabf4b9dbe2edfd7e Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 27 Jan 2021 02:08:49 +0000 Subject: espotify: consult-async-default-split is the obvious search trigger --- media/espotify.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3