branch: master
commit 693f55dcbcb7f95b15fa38707f04869154fbf717
Author: Eric James Michael Ritz <[email protected]>
Commit: Eric James Michael Ritz <[email protected]>
counsel.el (counsel-file-register): Action to open in other window
This patch adds an additional action to `counsel-file-register', bound
to the `j' key, so that users may press `M-o j' to view file registers
in different windows. The default action remains to open the file in
the window from which we called `counsel-file-register'.
Signed-off-by: Eric James Michael Ritz <[email protected]>
---
counsel.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/counsel.el b/counsel.el
index 75c3cc4..b71bcab 100644
--- a/counsel.el
+++ b/counsel.el
@@ -683,6 +683,10 @@ can use `C-x r j i' to open that file."
:action (lambda (register-file)
(with-ivy-window (find-file register-file)))))
+(ivy-set-actions
+ 'counsel-file-register
+ '(("j" find-file-other-window "other window")))
+
(declare-function bookmark-all-names "bookmark")
(declare-function bookmark-location "bookmark")