Commit 10666a4e authored by Victor A. Stoichiţă's avatar Victor A. Stoichiţă
Browse files

new action: counsel-find-file-symlink

parent fb1240d5
......@@ -378,6 +378,16 @@ deleted or iconified, according to option `frame-auto-hide-function'."
(global-set-key (kbd "C-c t") 'counsel-load-theme)
(global-set-key (kbd "C-c F") 'counsel-org-file)
(defun vic-counsel-find-file-symlink (x)
"Create symbolic link to file X."
(counsel--find-file-1 "Link file to: "
(lambda (new-name)
(make-symbolic-link x new-name 1))
(ivy-add-actions 'counsel-find-file '(("L" vic-counsel-find-file-symlink "symlink file")))
;;;; Ivy-bibtex
(autoload 'ivy-bibtex "ivy-bibtex" "" t)
;; ivy-bibtex requires ivy's `ivy--regex-ignore-order` regex builder, which
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment