completion/ivy: minor refactor

This commit is contained in:
Henrik Lissner 2019-10-25 20:24:36 -04:00
parent 5f00db871e
commit cf21cdc68c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 70 additions and 70 deletions

View file

@ -488,7 +488,6 @@ If ALL-FILES-P, search compressed and hidden files as well."
(interactive)
(counsel-compile (projectile-project-root)))
;;;###autoload
(defun +ivy/jump-list ()
"Go to an entry in evil's (or better-jumper's) jumplist."
@ -529,3 +528,11 @@ If ALL-FILES-P, search compressed and hidden files as well."
(goto-char (marker-position mark)))))
:caller '+ivy/jump-list)
(mapc #'kill-buffer buffers))))
;;;###autoload
(defun +ivy/git-grep-other-window-action ()
"Open the current counsel-{ag,rg,git-grep} candidate in other-window."
(interactive)
(ivy-set-action #'+ivy-git-grep-other-window-action)
(setq ivy-exit 'done)
(exit-minibuffer))