Turned off find file with consult
This commit is contained in:
parent
4d13ce9abb
commit
f71c36a25d
1 changed files with 127 additions and 127 deletions
|
|
@ -1831,12 +1831,12 @@ one, an error is signaled."
|
|||
;; (keymap-set consult-narrow-map (concat consult-narrow-key " ?") #'consult-narrow-help)
|
||||
)
|
||||
(require 'consult)
|
||||
(setq read-file-name-function #'consult-find-file-with-preview)
|
||||
;;(setq read-file-name-function #'consult-find-file-with-preview)
|
||||
|
||||
;;Previewing files in find-file
|
||||
(defun consult-find-file-with-preview (prompt &optional dir default mustmatch initial pred)
|
||||
(interactive)
|
||||
(let ((default-directory (or dir default-directory))
|
||||
(let ((default-directory (expand-file-name (or dir default-directory)))
|
||||
(minibuffer-completing-file-name t))
|
||||
(consult--read #'read-file-name-internal :state (consult--file-preview)
|
||||
:prompt prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue