[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b8b951b 59/63: Allow ivy-count-format to be set as nil
From: |
Oleh Krehel |
Subject: |
[elpa] master b8b951b 59/63: Allow ivy-count-format to be set as nil |
Date: |
Fri, 21 Aug 2015 12:08:48 +0000 |
branch: master
commit b8b951b205cd7def439bc6a37bba6f3abf24291d
Author: Chunyang Xu <address@hidden>
Commit: Chunyang Xu <address@hidden>
Allow ivy-count-format to be set as nil
---
ivy.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 55005de..faa469b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -72,7 +72,7 @@
Set this to nil if you don't want the count. You can also set it
to e.g. \"(%d/%d) \" if you want to see both the candidate index
and the candidate count."
- :type 'string)
+ :type '(choice (const :tag "Count disabled" nil) string))
(defcustom ivy-wrap nil
"Whether to wrap around after the first and last candidate."
@@ -993,6 +993,8 @@ This is useful for recursive `ivy-read'."
(setq ivy--prompt
(cond ((string-match "%.*d" prompt)
prompt)
+ ((null ivy-count-format)
+ nil)
((string-match "%d.*%d" ivy-count-format)
(let ((w (length (number-to-string
(length ivy--all-candidates))))
- [elpa] master 2bd9118 44/63: counsel.el (counsel-ag): New command, (continued)
- [elpa] master 2bd9118 44/63: counsel.el (counsel-ag): New command, Oleh Krehel, 2015/08/21
- [elpa] master 8152577 45/63: counsel.el (counsel-recoll): New command, Oleh Krehel, 2015/08/21
- [elpa] master 6ab519f 48/63: counsel.el (counsel-org-tag): Delete dups, Oleh Krehel, 2015/08/21
- [elpa] master e7d778b 47/63: counsel.el (counsel-recoll): Simplify, Oleh Krehel, 2015/08/21
- [elpa] master 5b61577 49/63: Use recoll -t instead of recollq, Oleh Krehel, 2015/08/21
- [elpa] master 8d82b98 51/63: swiper.el (swiper-from-isearch): New command, Oleh Krehel, 2015/08/21
- [elpa] master dba4e47 50/63: counsel.el (org-bound-and-true-p): Update declare, Oleh Krehel, 2015/08/21
- [elpa] master 1f0c79b 52/63: counsel.el (org-setting-tags): Declare dynamic var, Oleh Krehel, 2015/08/21
- [elpa] master 40c17b4 54/63: Add a few more Org declarations, Oleh Krehel, 2015/08/21
- [elpa] master 13d0c50 56/63: counsel.el (counsel-org-tag-agenda): New command, Oleh Krehel, 2015/08/21
- [elpa] master b8b951b 59/63: Allow ivy-count-format to be set as nil,
Oleh Krehel <=
- [elpa] master a33af29 55/63: counsel.el (org-bound-and-true-p): Use bound-and-true-p, Oleh Krehel, 2015/08/21
- [elpa] master 6b57efe 57/63: Bind "C-M-j" to ivy-immediate-done, Oleh Krehel, 2015/08/21
- [elpa] master be989fe 60/63: Preselect perfect matches with a leading ^, Oleh Krehel, 2015/08/21
- [elpa] master 476fc5d 58/63: Add with-ivy-window macro, Oleh Krehel, 2015/08/21
- [elpa] master 4443a8b 53/63: counsel.el (org-last-tags-completion-table): Declare, Oleh Krehel, 2015/08/21
- [elpa] master 098bec0 61/63: counsel.el (counsel-find-file): Fix window focus issue, Oleh Krehel, 2015/08/21
- [elpa] master 09f86fc 62/63: doc/Changelog.org: Add, Oleh Krehel, 2015/08/21
- [elpa] master f5dac47 63/63: Merge commit '09f86fca437f1b2e168093824e9d4ee0aea5130a' from swiper, Oleh Krehel, 2015/08/21