M-x consult-locate search results won't open following dired-open package config #1177
Answered
by
minad
tinglycraniumplacidly
asked this question in
Q&A
-
I use the dired-open package. dired and normal locate will open files according to the file's extension (see example config below). I'm wondering how to get consult-locate to follow suit. Out of the box, it just does find-file and opens it in an emacs buffer. Wondering if you have any advice, thanks!
|
Beta Was this translation helpful? Give feedback.
Answered by
minad
Feb 4, 2025
Replies: 1 comment 1 reply
-
You could try writing your own command like this: (defun my-consult-locate (&optional initial)
(interactive)
(my-dired-open-function (consult--find "Locate: " #'consult--locate-builder initial))) I hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tinglycraniumplacidly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could try writing your own command like this:
I hope this helps!