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:
parent
7ec7134947
commit
ff9a15e683
2 changed files with 14 additions and 13 deletions
|
@ -1,17 +1,18 @@
|
||||||
* PROJ List of things not working
|
* 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 vanilla keybindings
|
||||||
*** TODO Add keybinding for embark-act
|
*** TODO Add keybinding for embark-act
|
||||||
** TODO =SPC s s= and =SPC s S= ~:sw~
|
** TODO =SPC s s= and =SPC s S= ~:sw~
|
||||||
There isn't really a selectrum analogue to ~swiper-isearch~, ~consult-isearch~
|
There isn't really a selectrum analogue to ~swiper-isearch~, ~consult-isearch~
|
||||||
does something else (give you previously used isearch search terms).
|
does something else (give you previously used isearch search terms).
|
||||||
** TODO fix C-SPC
|
** TODO =C-SPC= and live previews
|
||||||
currently after executing the action it:
|
Automatic live previews have been globally disabled for speed purposes.
|
||||||
- moves the cursor to the new window if created, might not be desired in all cases
|
=C-SPC= is partially implemented with the preview key for ~consult-*~ commands.
|
||||||
- for some reason opens buffers in a new window (might be upstream bug?)
|
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
|
* PROJ List of things needed for Ivy parity
|
||||||
** TODO Icons
|
** TODO Icons
|
||||||
https://github.com/minad/marginalia/issues/59
|
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 bind =consult-lsp-diagnostics= to something?
|
||||||
** TODO test out bibtex-actions, check if more configuration should be added
|
** TODO test out bibtex-actions, check if more configuration should be added
|
||||||
https://github.com/bdarcus/bibtex-actions
|
https://github.com/bdarcus/bibtex-actions
|
||||||
|
.
|
||||||
|
|
|
@ -80,8 +80,9 @@
|
||||||
(setq consult-project-root-function #'doom-project-root)
|
(setq consult-project-root-function #'doom-project-root)
|
||||||
(setq completion-in-region-function #'consult-completion-in-region)
|
(setq completion-in-region-function #'consult-completion-in-region)
|
||||||
(setq consult-narrow-key "<")
|
(setq consult-narrow-key "<")
|
||||||
(setf (alist-get #'consult-bookmark consult-config) (list :preview-key nil))
|
(setf (alist-get #'consult-bookmark consult-config) (list :preview-key (kbd "C-SPC")))
|
||||||
(setf (alist-get #'consult-recent-file consult-config) (list :preview-key nil))
|
(setf (alist-get #'consult-recent-file consult-config) (list :preview-key (kbd "C-SPC")))
|
||||||
|
(setf (alist-get #'consult--grep consult-config) (list :preview-key (kbd "C-SPC")))
|
||||||
(setq consult-line-numbers-widen t)
|
(setq consult-line-numbers-widen t)
|
||||||
(setq consult-async-input-debounce 0.5)
|
(setq consult-async-input-debounce 0.5)
|
||||||
(setq consult-async-input-throttle 0.8))
|
(setq consult-async-input-throttle 0.8))
|
||||||
|
@ -111,9 +112,7 @@
|
||||||
:desc "Open target with sudo" "s" #'sudo-edit
|
:desc "Open target with sudo" "s" #'sudo-edit
|
||||||
:desc "Open target with vlf" "l" #'vlf
|
:desc "Open target with vlf" "l" #'vlf
|
||||||
:map embark-file-map
|
:map embark-file-map
|
||||||
:desc "Cycle marginalia views" "A" #'marginalia-cycle )
|
:desc "Cycle marginalia views" "A" #'marginalia-cycle))
|
||||||
(let ((embark-quit-after-action nil))
|
|
||||||
(map! :map minibuffer-local-map "C-SPC" #'embark-default-action)))
|
|
||||||
|
|
||||||
(use-package! marginalia
|
(use-package! marginalia
|
||||||
:hook (doom-first-input . marginalia-mode)
|
:hook (doom-first-input . marginalia-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue