[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1e739de 331/348: ivy-overlay.el (ivy-left-pad): Trim cands
From: |
Oleh Krehel |
Subject: |
[elpa] master 1e739de 331/348: ivy-overlay.el (ivy-left-pad): Trim cands to window-width |
Date: |
Sat, 8 Apr 2017 11:04:25 -0400 (EDT) |
branch: master
commit 1e739de40f8c536da746f2df9e1e55407a08d660
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy-overlay.el (ivy-left-pad): Trim cands to window-width
---
ivy-overlay.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index 861d1f6..29e9980 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -39,7 +39,13 @@
(defun ivy-left-pad (str width)
"Pad STR from left with WIDTH spaces."
(let ((padding (make-string width ?\ )))
- (mapconcat (lambda (x) (concat padding x))
+ (mapconcat (lambda (x)
+ (setq x (concat padding x))
+ (if (> (length x) (window-width))
+ (concat
+ (substring x 0 (- (window-width) 4))
+ "...")
+ x))
(split-string str "\n")
"\n")))
- [elpa] master 5f732cd 297/348: Add compatibility with evil-ex-search., (continued)
- [elpa] master 5f732cd 297/348: Add compatibility with evil-ex-search., Oleh Krehel, 2017/04/08
- [elpa] master d23d1fe 296/348: swiper.el (swiper-font-lock-exclude): Add nix-mode, Oleh Krehel, 2017/04/08
- [elpa] master 4dcd315 292/348: counsel.el: Improve counsel-package, Oleh Krehel, 2017/04/08
- [elpa] master 2b8d324 299/348: counsel.el (counsel-org-tag-action): Fix "C-M-m", Oleh Krehel, 2017/04/08
- [elpa] master c5fa8c2 308/348: Run wgrep-setup when entering ivy-occur-grep-mode, Oleh Krehel, 2017/04/08
- [elpa] master 90aaf8b 307/348: ivy.el (ivy-completing-read): Set :caller to this-command, Oleh Krehel, 2017/04/08
- [elpa] master e9219e7 313/348: ivy-hydra.el: Use ivy-minibuffer-map, Oleh Krehel, 2017/04/08
- [elpa] master 7f5b268 311/348: ivy-hydra.el: Add an alternative "M-o" using hydra, Oleh Krehel, 2017/04/08
- [elpa] master beffa78 323/348: counsel.el (counsel-grep-base-command): Single quote regex, Oleh Krehel, 2017/04/08
- [elpa] master 7b453c8 329/348: ivy.el (ivy-completion-in-region-action): Work for cons cells, Oleh Krehel, 2017/04/08
- [elpa] master 1e739de 331/348: ivy-overlay.el (ivy-left-pad): Trim cands to window-width,
Oleh Krehel <=
- [elpa] master 16b002a 343/348: doc/Changelog.org: Link all issues, Oleh Krehel, 2017/04/08
- [elpa] master e1351c8 348/348: Merge commit 'ace01d5603ddf49b025eb811b612af72ec38dcfb' from swiper, Oleh Krehel, 2017/04/08
- [elpa] master 3ce73ce 069/348: counsel.el (counsel-company): Enable company-mode, Oleh Krehel, 2017/04/08
- [elpa] master 61cdcd5 139/348: ivy.el (ivy-occur-press-and-switch): Use ivy-occur-last, Oleh Krehel, 2017/04/08
- [elpa] master 9346e96 194/348: Improve the overlay offset, Oleh Krehel, 2017/04/08
- [elpa] master 6644d8e 195/348: ivy-display.el: Move to wiki, Oleh Krehel, 2017/04/08
- [elpa] master e49fb6e 205/348: ivy.el (ivy-call): Set default-directory, Oleh Krehel, 2017/04/08
- [elpa] master 714cb8c 209/348: ivy.el (ivy--sort-files-by-date): Fix docstring, Oleh Krehel, 2017/04/08
- [elpa] master 0fc1507 237/348: ivy.el (ivy-occur-mode): Set view-read-only to nil locally, Oleh Krehel, 2017/04/08
- [elpa] master ea260d1 249/348: counsel.el (counsel-grep-occur): Quote the directory name, Oleh Krehel, 2017/04/08