Questions tagged [consult]
17 questions
3
votes
0 answers
How to exclude certain directories/files from `consult-git-grep` search?
I want to exlude certain files such as .gitignore in consult-git-grep search.
consult-git-grep works find with following defualt setup:
(setq consult-git-grep-args "git --no-pager grep -F -n --no-color -I -e '%s')
I have updated…

alper
- 1,238
- 11
- 30
1
vote
1 answer
project.el: override project-find-regexp with use-package to show live results like project-find-file (preferably with consult)?
When switching projects, there's a few commands available off the bat that can be selected from the mini-buffer after selecting a project.
[f] Find file [g] Find regexp [d] Find directory ...
Both find file and find directory and interactive. i.e.,…

ldeck
- 195
- 6
0
votes
0 answers
consult.el: annotation of abbrev symbols in completion buffer not working as expected
I have created a bunch of abbreviations for long account names in beancount-mode. The abbrevs are pretty volatile in my short term memory, so I thought of using consult--read to help display the available abbrevs and quickly select the desired…

MBKamble
- 1
0
votes
2 answers
How preview find file without close minibuffer
Emacs 27.1
packages:
consult
embark
I want to find test.txt file in folder temp.
I do this.
Now I want to preview selected file without close minibuffer. In embark I'm not operation for this.
How I can do this?

a_subscriber
- 3,854
- 1
- 17
- 47
0
votes
0 answers
consult-find - live preview result without close minibuffer?
Emacs 27.1
package consult.
Here my init.el for package "consult":
(use-package consult
:bind (
;; C-c bindings (mode-specific-map)
("C-c M-x" . consult-mode-command)
("C-c h" . consult-history)
("C-c k" .…

a_subscriber
- 3,854
- 1
- 17
- 47
0
votes
2 answers
consult-man, consult-grep, etc. don't match anything
Emacs 29.0.60 running on Windows 10 with Msys2 and Git for Windows.
I'm trying out the consult package, particularly functions such as consult-grep and consult-man, and I'm finding that I apparently don't know how to use them. After starting emacs…

Rodney Price
- 496
- 3
- 10
0
votes
1 answer
Why consult-recent-file show also recent directories?
Emacs 27.1
package: consult ver.0.32
Here my init.el
(use-package consult
:config (message "consult - I'm always here after the package is loaded")
(add-hook 'dired-mode-hook (lambda () (recentf-add-file default-directory)))
(define-key…

a_subscriber
- 3,854
- 1
- 17
- 47
0
votes
1 answer
Using narrow function in consult
;; Optionally configure the narrowing key.
;; Both `<` and `C-+` work reasonably well.
I don't get how, am able to search. If I press C-x C-f to find a file, then a try to C-+ or <, but nothing happens. How do I use this function+

David
- 291
- 1
- 9
0
votes
1 answer
how to move `consult-yank-pop` selected entry to top of kill ring after selection?
I'm using the package consult, so after I press M-y (consult-yank-pop) without pressing C-y (yank) first, I get a list for me to choose. Say, I get the list in the kill ring as
a
b
c
d
If I navigate to "c" and hit Enter, I get "c" inserted.…

davyjones
- 127
- 5
0
votes
1 answer
How to properly use consult-ripgrep to search through org-roam notes
I am trying to setup a way to systematically search through all my org-roam notes and I came across the following code that uses consult-ripgrep:
(defun bms/org-roam-rg-search ()
"Search org-roam directory using consult-ripgrep. With…
0
votes
0 answers
How do I select lsp-mode function completion candidates?
I have company, lsp-mode, consult, yasnippet installed. I'm not sure which one triggers the following completion. How do I scroll over and select them?

Mingheng Wang
- 53
- 4
0
votes
1 answer
How to define consult faces generically for minibuffer highlighting that fits with your selected theme?
Background
I'm experimenting with different themes to see which one I prefer. I'm giving a theme time to soak, so to speak, by using it for a few weeks. At the moment I'm trying the paganini theme.
Consult results issue to solve:
1. Improved line…

ldeck
- 195
- 6
0
votes
2 answers
consult command for isearch?
I was using ivy+swiper for a while, and it has swiper-from-isearch which gives a nice occur-like UI for finding isearch matches. I switched to vertico + consult recently.
I see that consult has consult-line which you can bind into isearch-mode-map,…

GaryO
- 476
- 2
- 16
0
votes
2 answers
How to ignore dired buffers and buffers that begin with * or SPC when switching buffer in Vertico + Consult?
I am currently an ivy user, trying out vertico + consult.
For ivy I am using the following
(defun rit-check-buffer-mode (str mode)
"Check whether the buffer's major mode is `mode'."
(let ((buf (get-buffer str)))
(and buf (eq…
0
votes
3 answers
consult-find - can't find only folders (without files)
Linux Mint 20
Emacs 27.2
I want to find ONLY folders target (include empty) in some folder (e.g myProject)
Steps:
In dired mode
M-x consult-find
/target
And here result:
As you can see it found not only folders target. But also all files.
But I…

a_subscriber
- 3,854
- 1
- 17
- 47