fix vertico-posframe for consult-ripgrep-dir

This commit is contained in:
janis 2026-04-06 00:50:02 +02:00
parent e472853b74
commit a355fec5b8
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -529,7 +529,7 @@ Honestly not very happy with this at the moment, but it's kind of hacked togethe
"fi" '("Edit init.org" . nemo/edit-init-org)
"fs" '("Save" . save-buffer)
"fr" '("rg" . consult-ripgrep)
"fR" '("rg in dir" . nemo/consult-ripgrep-dir)
"fR" '("rg in dir" . #nemo/consult-ripgrep-dir)
)
)
#+end_src
@ -1116,7 +1116,7 @@ Use =vertico-posframe= to make the =vertico= buffer floating in the centre of th
;; Ensure posframe is always restored when exiting a minibuffer
:hook (minibuffer-exit . (lambda () (vertico-posframe-mode 1)))
:config
(vertico-posframe-mode 1)
;; (vertico-posframe-mode 1)
(setq vertico-posframe-height vertico-count
vertico-multiform-commands
'((consult-line (:not posframe))
@ -1169,7 +1169,8 @@ Use =consult-xref= for =lsp-xref= and =xref-find-references=.
"Call consult-ripgrep in a user-specified directory."
(interactive)
(let ((dir (read-directory-name "Ripgrep directory: ")))
(consult-ripgrep dir))
(let ((this-command 'consult-ripgrep))
(consult-ripgrep dir)))
)
(bind-key "C-s" 'consult-line custom-bindings-map)