diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/espotify.org | 8 |
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 |