Fix describe-(function|variable) and ivy-resume
describe-(function|variable) weren't remapped to their counsel variants, so ivy-resume wouldn't resume those sessions properly.
This commit is contained in:
parent
4b8315466b
commit
9e3682535a
3 changed files with 3 additions and 11 deletions
|
@ -204,12 +204,3 @@ counsel-rg)."
|
||||||
(re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
|
(re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
|
||||||
(run-hooks 'counsel-grep-post-action-hook)
|
(run-hooks 'counsel-grep-post-action-hook)
|
||||||
(selected-window))))))
|
(selected-window))))))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun +ivy-quit-and-resume ()
|
|
||||||
"Close the current popup window and resume ivy."
|
|
||||||
(interactive)
|
|
||||||
(when (doom-popup-p)
|
|
||||||
(doom/popup-close))
|
|
||||||
(ivy-resume))
|
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
[remap projectile-find-file] #'counsel-projectile-find-file
|
[remap projectile-find-file] #'counsel-projectile-find-file
|
||||||
[remap imenu-anywhere] #'ivy-imenu-anywhere
|
[remap imenu-anywhere] #'ivy-imenu-anywhere
|
||||||
[remap execute-extended-command] #'counsel-M-x
|
[remap execute-extended-command] #'counsel-M-x
|
||||||
[remap describe-face] #'counsel-describe-face)
|
[remap describe-function] #'counsel-describe-function
|
||||||
|
[remap describe-variable] #'counsel-describe-variable)
|
||||||
|
|
||||||
;; Show more buffer information in switch-buffer commands
|
;; Show more buffer information in switch-buffer commands
|
||||||
(ivy-set-display-transformer #'ivy-switch-buffer #'+ivy-buffer-transformer)
|
(ivy-set-display-transformer #'ivy-switch-buffer #'+ivy-buffer-transformer)
|
||||||
|
|
|
@ -645,7 +645,7 @@
|
||||||
:n "]]" #'help-go-forward
|
:n "]]" #'help-go-forward
|
||||||
:n "o" #'ace-link-help
|
:n "o" #'ace-link-help
|
||||||
:n "q" #'quit-window
|
:n "q" #'quit-window
|
||||||
:n "Q" #'+ivy-quit-and-resume)
|
:n "Q" #'ivy-resume)
|
||||||
|
|
||||||
(:after vc-annotate
|
(:after vc-annotate
|
||||||
:map vc-annotate-mode-map
|
:map vc-annotate-mode-map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue