3 karma · joined May 16, 2022 (4y ago) · 1 submissions
comment 4y ago · link · parent
(defun MY-consult-find-file (arg)
"If no prefix: find-file, otherwise consult-recentf."
(interactive "p")
(let* ((filename
(if (eq arg 1)
(call-interactively 'find-file)
(call-interactively 'consult-recent-file)))
)))
(global-set-key (kbd "C-x C-f") 'MY-consult-find-file)
Before switching to vertico/orderless, I used ivy with essentially the same machinery. That worked great too.