branch: master
commit d0ed39738dcd72777e4443bdc1812b14ae55412e
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-switch-view): Add
    
    Fixes #1109
    Re #929
---
 ivy.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ivy.el b/ivy.el
index 57414a6..f7f20f9 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3490,6 +3490,14 @@ Skip buffers that match `ivy-ignore-buffers'."
               :caller 'ivy-switch-buffer)))
 
 ;;;###autoload
+(defun ivy-switch-view ()
+  "Switch to one of the window views stored by `ivy-push-view'."
+  (interactive)
+  (let ((ivy-initial-inputs-alist
+         '((ivy-switch-buffer . "{}"))))
+    (ivy-switch-buffer)))
+
+;;;###autoload
 (defun ivy-switch-buffer-other-window ()
   "Switch to another buffer in another window."
   (interactive)

Reply via email to