[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c56ad2a 114/399: ivy-hydra.el (ivy-dispatching-done-hydra)
From: |
Oleh Krehel |
Subject: |
[elpa] master c56ad2a 114/399: ivy-hydra.el (ivy-dispatching-done-hydra): Improve |
Date: |
Sat, 20 Jul 2019 14:57:03 -0400 (EDT) |
branch: master
commit c56ad2a551d8915525201590ef38a658bbeeb54b
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy-hydra.el (ivy-dispatching-done-hydra): Improve
Calculate more precisely if columns should be used
---
ivy-hydra.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/ivy-hydra.el b/ivy-hydra.el
index 3bbfe8b..fb1fd7a 100644
--- a/ivy-hydra.el
+++ b/ivy-hydra.el
@@ -95,10 +95,14 @@ _h_ ^+^ _l_ | _d_one ^ ^ | _o_ops | _M_: matcher
%-5s(ivy--matcher-desc)
"Select one of the available actions and call `ivy-done'."
(interactive)
(let* ((actions (ivy-state-action ivy-last))
- (estimated-len (+ 25 (length
- (mapconcat
- (lambda (x) (format "[%s] %s" (nth 0 x) (nth 2
x)))
- (cdr actions) ", "))))
+ (extra-actions '(("M-o" nil "back")
+ ("C-g" nil)))
+ (doc (concat "action: "
+ (mapconcat
+ (lambda (x) (format "[%s] %s" (nth 0 x) (nth 2 x)))
+ (append (cdr actions)
+ extra-actions) ", ")))
+ (estimated-len (length doc))
(n-columns (if (> estimated-len (window-width))
ivy-dispatching-done-columns
nil)))
@@ -115,8 +119,7 @@ _h_ ^+^ _l_ | _d_one ^ ^ | _o_ops | _M_: matcher
%-5s(ivy--matcher-desc)
(ivy-done))
(nth 2 x)))
(cdr actions))
- ("M-o" nil "back")
- ("C-g" nil)))))))
+ ,@extra-actions))))))
(define-key ivy-minibuffer-map (kbd "M-o") 'ivy-dispatching-done-hydra)
- [elpa] master 4c52362 110/399: swiper.el (swiper-occur): Make wgrep work for narrowed buffers, (continued)
- [elpa] master 4c52362 110/399: swiper.el (swiper-occur): Make wgrep work for narrowed buffers, Oleh Krehel, 2019/07/20
- [elpa] master 8c1a2fa 107/399: Allow all re-builders to use ivy-highlight-grep-commands, Oleh Krehel, 2019/07/20
- [elpa] master 78b62f2 102/399: README.md: Mention char-fold-to-regexp, Oleh Krehel, 2019/07/20
- [elpa] master a601e40 104/399: counsel.el (counsel-org-goto-all): Use org-mode outline settings, Oleh Krehel, 2019/07/20
- [elpa] master 468e914 109/399: counsel.el (counsel--file-name-filter): Clean up style, Oleh Krehel, 2019/07/20
- [elpa] master 6373a48 105/399: counsel.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 164fecb 108/399: Make find-file-occur work with multi-pass regex builders, Oleh Krehel, 2019/07/20
- [elpa] master 3b677d4 113/399: counsel.el (counsel-file-jump-args): Fix dotfiles not being shown, Oleh Krehel, 2019/07/20
- [elpa] master ffa2d8f 112/399: counsel.el (counsel-unicode-char): Fix sorting, Oleh Krehel, 2019/07/20
- [elpa] master 18d7f84 117/399: counsel.el (counsel-yank-pop-action): Also works for strings, Oleh Krehel, 2019/07/20
- [elpa] master c56ad2a 114/399: ivy-hydra.el (ivy-dispatching-done-hydra): Improve,
Oleh Krehel <=
- [elpa] master 344aebc 116/399: counsel.el (counsel-dired-jump): Improve, Oleh Krehel, 2019/07/20
- [elpa] master b27ef9e 111/399: counsel.el (counsel-git-cands): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1b5af1e 115/399: counsel.el (counsel-file-jump-args): Adjust, Oleh Krehel, 2019/07/20
- [elpa] master 05763ae 121/399: counsel.el (counsel-git): Fix default-directory, Oleh Krehel, 2019/07/20
- [elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 3cb9d72 120/399: ivy-overlay.el (ivy-display-function-overlay): Fix weird offset, Oleh Krehel, 2019/07/20
- [elpa] master ea6ef81 122/399: Allow recursive minibuffers to use ivy-display-function-alist, Oleh Krehel, 2019/07/20
- [elpa] master 5e54abd 123/399: Fix counsel-org-tag-agenda, Oleh Krehel, 2019/07/20
- [elpa] master 1998783 125/399: counsel.el (counsel-find-file-ignore-regexp): Add nested hidden dotfiles, Oleh Krehel, 2019/07/20
- [elpa] master bb5d0d4 119/399: ivy-overlay.el (ivy-display-function-overlay): Refactor, Oleh Krehel, 2019/07/20