]> code.delx.au - gnu-emacs-elpa/commit
New feature: virtual views in ivy-switch-buffer
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 11 Apr 2016 14:48:28 +0000 (16:48 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 11 Apr 2016 14:51:55 +0000 (16:51 +0200)
commit4ac3736c996f7af2d3874891dd62c0743e242b52
treeab59b6aacea05d77c265a0854b779c0d6ede2993
parent119a15123f035d16ed35f96e9002911c724d5e9b
New feature: virtual views in ivy-switch-buffer

* ivy.el (ivy-views): New defvar that stores the pre-defined views.
(ivy-source-views): New defun.
(ivy-set-view-recur): New defun.
(ivy--switch-buffer-action): Extend.
(ivy-set-sources): Attach `ivy-source-views' as an additional source to
`ivy-switch-buffer'.

How to use: just set `ivy-views' appropriately. An example value is
provided (but nulled, so that it's empty initially).
ivy.el