consult hangs with find-file at emacs startup #936
Answered
by
rickalex21
rickalex21
asked this question in
Q&A
-
Hello, Was something changed recently that affects this code? It takes a while to bring up the results at (defun my/fd (&optional dir flags initial)
(interactive "P")
(setq my/fd-flags (if flags (append (split-string my/fd-default)(split-string flags))(split-string my/fd-default)))
(let* ((prompt-dir (consult--directory-prompt "Fd" dir))
(default-directory (car (last prompt-dir))))
(find-file (consult--find (car prompt-dir) #'consult--fd-builder initial)))) I usually call it like this: (defun my/fd-org () "org/" (interactive)(my/fd (concat org-directory) "--extension=org --extension=md --extension=tex" )) Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
rickalex21
Feb 5, 2024
Replies: 1 comment 3 replies
-
Did you try consult-fd, which has been added a short while ago? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If it was added over 3 months ago I probably considered it at one point.
I figured out what the problem was. My code is working now so if the
above code is working now should I incoporate
consult-fd
? Or leaveit alone cause it's working now?