branch: master commit 6254e88140e5fb8966eb21db6997090f3078556c Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Allow a sexp node in ivy-views Example: (setq ivy-views '( ;; ("lispy + source {}" (horz (file "lispy.el") (sexp (bookmark-jump "s: source")))))) The provided sexp will simply be evaluated. Fixes #472 --- ivy.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index da89d97..53d0622 100644 --- a/ivy.el +++ b/ivy.el @@ -2597,7 +2597,9 @@ TREE can be nested multiple times to have mulitple window splits.") ((file-exists-p name) (find-file name))))) ((eq (car view) 'buffer) - (switch-to-buffer (cadr view))))) + (switch-to-buffer (cadr view))) + ((eq (car view) 'sexp) + (eval (cadr view))))) (defun ivy--switch-buffer-action (buffer) "Switch to BUFFER.