]> code.delx.au - gnu-emacs-elpa/commit
Update index formatting logic
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 2 Jul 2015 14:44:25 +0000 (16:44 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 2 Jul 2015 14:59:29 +0000 (16:59 +0200)
commit783f7c58776d1309c84586799f31e0fe6ec64482
tree56565b692706c5822d3f390a511e9dd55f47c06b
parentf9974e80f4440cb50e1a005efe9300f5d9476535
Update index formatting logic

* ivy.el (ivy--reset-state): Update.
(ivy--insert-prompt): Simplify.

If you want to see both the index and the length of the candidates,
instead of just the length, it can be done like this:

    (setq ivy-count-format "%d/%d ")

Each "%d" is replaced appropriately due to the total length of the
candidates. For instance, this one can result in "%4d/%-4d M-x ".

Re #167
ivy.el
swiper.el