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 consult-narrow-map (vconcat consult-narrow-key "?") #'consult-narrow-help)
)
(use-package consult-dir
:ensure t
:bind (("C-x C-d" . consult-dir)
("C-x C-j" . consult-dir-dired)
:map minibuffer-local-completion-map
("C-x C-d" . consult-dir)
("C-x C-j" . consult-dir-dired)))
(use-package consult-project-extra
:ensure t
:bind
(("C-c p f" . consult-project-extra-find)
("C-c p o" . consult-project-extra-find-other-window)))
M-x consult-recent-file
Why also show recent directories. I need to show only recent files!
If I remove
(add-hook 'dired-mode-hook (lambda () (recentf-add-file default-directory)))
than it work fine.
But I need this config, because recent directories not working correctly:
M-x consult-dir
Press "r"