mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
add action for counsel-find-file
This commit is contained in:
@ -198,6 +198,22 @@ search current file. See `+ivy-task-tags' to customize what this searches for."
|
||||
(selected-window))))))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun +ivy/reloading (cmd)
|
||||
(lambda (x)
|
||||
(funcall cmd x)
|
||||
(ivy--reset-state ivy-last)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +ivy/given-file (cmd prompt)
|
||||
(lambda (source)
|
||||
(let ((target
|
||||
(let ((enable-recursive-minibuffers t))
|
||||
(read-file-name
|
||||
(format "%s %s to:" prompt source)))))
|
||||
(funcall cmd source target 1))))
|
||||
|
||||
|
||||
;;
|
||||
;; File searching
|
||||
;;
|
||||
|
Reference in New Issue
Block a user