selectrum: rework live-previews

- for the slow consult functions it's bound to `C-SPC`
- for the rest of them the current approach wasn't working out great so
  it's removed for the time being.
This commit is contained in:
Itai Y. Efrat 2021-04-30 00:19:38 +03:00
parent 7ec7134947
commit ff9a15e683
2 changed files with 14 additions and 13 deletions

View file

@ -1,17 +1,18 @@
* PROJ List of things not working
** TODO Functions very slow on startup:
- =consult-recent-files=
- =consult-bookmark=
preview deactivated for now (see consult use-package)
** TODO Add vanilla keybindings
*** TODO Add keybinding for embark-act
** TODO =SPC s s= and =SPC s S= ~:sw~
There isn't really a selectrum analogue to ~swiper-isearch~, ~consult-isearch~
does something else (give you previously used isearch search terms).
** TODO fix C-SPC
currently after executing the action it:
- moves the cursor to the new window if created, might not be desired in all cases
- for some reason opens buffers in a new window (might be upstream bug?)
** TODO =C-SPC= and live previews
Automatic live previews have been globally disabled for speed purposes.
=C-SPC= is partially implemented with the preview key for ~consult-*~ commands.
Need to get it to work for other selectrum commands such =SPC h f=.
#+begin_src emacs-lisp
(let ((embark-quit-after-action nil))
(map! :map minibuffer-local-map "C-SPC" #'embark-default-action)))
#+end_src
gets us close but moves the cursor to the new screen which is undesirable.
* PROJ List of things needed for Ivy parity
** TODO Icons
https://github.com/minad/marginalia/issues/59
@ -32,3 +33,4 @@ In selectrum, it leads to =/foo/bar!=
** TODO bind =consult-lsp-diagnostics= to something?
** TODO test out bibtex-actions, check if more configuration should be added
https://github.com/bdarcus/bibtex-actions
.