[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f90bc8c 164/184: ivy.el (ivy-configure): Add :height
From: |
Oleh Krehel |
Subject: |
[elpa] master f90bc8c 164/184: ivy.el (ivy-configure): Add :height |
Date: |
Wed, 16 Oct 2019 13:15:15 -0400 (EDT) |
branch: master
commit f90bc8cdb68334d1eff77680d775309ac0614022
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-configure): Add :height
* counsel.el (counsel-el): Fixup.
(counsel-yank-pop-height): Remove obsolete alias after 4 months.
---
counsel.el | 22 ++++++++++------------
ivy.el | 3 +++
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/counsel.el b/counsel.el
index 84e83bb..2df98cc 100644
--- a/counsel.el
+++ b/counsel.el
@@ -313,16 +313,16 @@ Update the minibuffer with the amount of lines collected
every
(if (string= str "")
(mapatoms
(lambda (x)
- (when (symbolp x)
+ (when (and (symbolp x) (funcall pred x))
(push (symbol-name x) symbol-names))))
(setq symbol-names (all-completions str obarray pred)))
(ivy-read "Symbol name: " symbol-names
- :caller 'counsel-el
- :predicate pred
:initial-input str
- :action #'ivy-completion-in-region-action)))
+ :action #'ivy-completion-in-region-action
+ :caller 'counsel-el)))
-(add-to-list 'ivy-height-alist '(counsel-el . 7))
+(ivy-configure 'counsel-el
+ :height 7)
;;** `counsel-cl'
(declare-function slime-symbol-start-pos "ext:slime")
@@ -387,7 +387,8 @@ Update the minibuffer with the amount of lines collected
every
(delete-region (car bnd) (cdr bnd)))
(insert res))))
-(add-to-list 'ivy-height-alist '(counsel--generic . 7))
+(ivy-configure 'counsel--generic
+ :height 7)
;;;###autoload
(defun counsel-clj ()
@@ -1758,10 +1759,10 @@ currently checked out."
:caller 'counsel-git-log))
(ivy-configure 'counsel-git-log
+ :height 4
:unwind-fn #'counsel-delete-process
:format-fn #'counsel--git-log-format-function)
-(add-to-list 'ivy-height-alist '(counsel-git-log . 4))
(add-to-list 'counsel-async-split-string-re-alist '(counsel-git-log . "^commit
"))
(add-to-list 'counsel-async-ignore-re-alist '(counsel-git-log . "^[ \n]*$"))
@@ -4025,9 +4026,6 @@ Additional actions:\\<ivy-minibuffer-map>
(const :tag "Dashes" "\n----\n")
string))
-(define-obsolete-variable-alias 'counsel-yank-pop-height
- 'ivy-height-alist "0.11.0")
-
(defun counsel--yank-pop-format-function (cand-pairs)
"Transform CAND-PAIRS into a string for `counsel-yank-pop'."
(ivy--format-function-generic
@@ -4183,8 +4181,8 @@ Note: Duplicate elements of `kill-ring' are always
deleted."
:caller 'counsel-yank-pop)))
(ivy-configure 'counsel-yank-pop
+ :height 5
:format-fn #'counsel--yank-pop-format-function)
-(add-to-list 'ivy-height-alist '(counsel-yank-pop . 5))
(ivy-set-actions
'counsel-yank-pop
@@ -4259,8 +4257,8 @@ matching the register's value description against a
regexp in
:caller 'counsel-evil-registers)
(user-error "Required feature `evil' not installed.")))
(ivy-configure 'counsel-evil-registers
+ :height 5
:format-fn #'counsel--yank-pop-format-function)
-(add-to-list 'ivy-height-alist '(counsel-evil-registers . 5))
(defun counsel-evil-registers-action (s)
"Paste contents of S, trimming the register part.
diff --git a/ivy.el b/ivy.el
index ed6d2c8..99f9d2e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1913,6 +1913,7 @@ May supersede `ivy-initial-inputs-alist'."
(cl-defun ivy-configure (caller
&key
initial-input
+ height
occur
update-fn
unwind-fn
@@ -1926,6 +1927,8 @@ May supersede `ivy-initial-inputs-alist'."
(declare (indent 1))
(when initial-input
(ivy--alist-set 'ivy-initial-inputs-alist caller initial-input))
+ (when height
+ (ivy--alist-set 'ivy-height-alist caller height))
(when occur
(ivy-set-occur caller occur))
(when update-fn
- [elpa] master 501ac71 151/184: ivy.el (ivy-occur-revert-buffer): Re-use ivy-highlight-grep-commands, (continued)
- [elpa] master 501ac71 151/184: ivy.el (ivy-occur-revert-buffer): Re-use ivy-highlight-grep-commands, Oleh Krehel, 2019/10/16
- [elpa] master 6b0c41b 167/184: ivy.el (ivy-sort-file-function-using-ido): Make obsolete, Oleh Krehel, 2019/10/16
- [elpa] master 22cc602 160/184: counsel.el (counsel-find-symbol): Should not show up in counsel-M-x, Oleh Krehel, 2019/10/16
- [elpa] master b85f857 166/184: .github/FUNDING.yml: Add github, Oleh Krehel, 2019/10/16
- [elpa] master 722250c 162/184: counsel.el (counsel-imenu-action): Handle nil case, Oleh Krehel, 2019/10/16
- [elpa] master 9970ae6 180/184: counsel.el (counsel-read-directory-name): Add, Oleh Krehel, 2019/10/16
- [elpa] master 7054901 176/184: ivy.el (ivy-occur-revert-buffer): Make more generic, Oleh Krehel, 2019/10/16
- [elpa] master fcef913 023/184: swiper-isearch: Fix regexes in "ignore-order" case, Oleh Krehel, 2019/10/16
- [elpa] master 0b85d9d 030/184: counsel.el (counsel-at-git-issue-p): Add vc-git-log-view-mode, Oleh Krehel, 2019/10/16
- [elpa] master 2db2c51 050/184: counsel.el (counsel-find-file-mkdir-action): make parents too, Oleh Krehel, 2019/10/16
- [elpa] master f90bc8c 164/184: ivy.el (ivy-configure): Add :height,
Oleh Krehel <=
- [elpa] master 09c40fc 175/184: swiper.el (swiper--occur-insert-lines): Simplify, Oleh Krehel, 2019/10/16
- [elpa] master c69deb2 179/184: ivy.el: "~~" now works as expected for /sudo::, Oleh Krehel, 2019/10/16
- [elpa] master 24a6354 170/184: ivy.el (ivy--format): Improve docstring, Oleh Krehel, 2019/10/16
- [elpa] master 0d842e3 062/184: ivy.el (ivy-switch-buffer): Clean up, Oleh Krehel, 2019/10/16
- [elpa] master 560957f 074/184: Check if ivy--done is accepting a string., Oleh Krehel, 2019/10/16
- [elpa] master 3b4956a 123/184: counsel.el (counsel-evil-registers-height): Remove obsolete var, Oleh Krehel, 2019/10/16
- [elpa] master a1bb702 128/184: Nicer message when counsel-git-grep finds no match, Oleh Krehel, 2019/10/16
- [elpa] master 5d2938f 126/184: counsel.el (counsel-git-grep): Works with ivy--regex-fuzzy, Oleh Krehel, 2019/10/16
- [elpa] master 3a37741 147/184: swiper.el (swiper--update-input-ivy): Set case-fold-search, Oleh Krehel, 2019/10/16
- [elpa] master dea98fc 153/184: ivy.el (ivy-inhibit-action): Clean up docstring, Oleh Krehel, 2019/10/16