[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6fc36b5 210/272: option to add newline after ivy-read prom
From: |
Oleh Krehel |
Subject: |
[elpa] master 6fc36b5 210/272: option to add newline after ivy-read prompt |
Date: |
Mon, 25 Apr 2016 10:13:26 +0000 |
branch: master
commit 6fc36b5aa72d8f2e1ec4727c6bbd498168a31732
Author: Eric Danan <address@hidden>
Commit: Eric Danan <address@hidden>
option to add newline after ivy-read prompt
---
ivy.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ivy.el b/ivy.el
index f11543a..bd5e276 100644
--- a/ivy.el
+++ b/ivy.el
@@ -124,6 +124,10 @@ Set this to \"(%d/%d) \" to display both the index and the
count."
(const :tag "Count matches and show current match" "(%d/%d) ")
string))
+(defcustom ivy-add-newline-after-prompt nil
+ "When non-nil, add a newline after the `ivy-read' prompt."
+ :type 'boolean)
+
(defcustom ivy-wrap nil
"When non-nil, wrap around after the first and the last candidate."
:type 'boolean)
@@ -1856,6 +1860,8 @@ depending on the number of candidates."
(window-width))
(setq n-str (concat n-str "\n" d-str))
(setq n-str (concat n-str d-str)))
+ (when ivy-add-newline-after-prompt
+ (setq n-str (concat n-str "\n")))
(let ((regex (format "\\([^\n]\\{%d\\}\\)[^\n]" (window-width))))
(while (string-match regex n-str)
(setq n-str (replace-match (concat (match-string 1 n-str) "\n")
nil t n-str 1))))
- [elpa] master 5229ebe 173/272: counsel.el (counsel-prompt-function-dir): Fix format, (continued)
- [elpa] master 5229ebe 173/272: counsel.el (counsel-prompt-function-dir): Fix format, Oleh Krehel, 2016/04/25
- [elpa] master 8de2930 221/272: ivy.el: Improve "M-n", Oleh Krehel, 2016/04/25
- [elpa] master 6823518 196/272: swiper.el (swiper--candidates): Always remove '(field), Oleh Krehel, 2016/04/25
- [elpa] master d45ee54 258/272: Make the slash more magic during file name completion, Oleh Krehel, 2016/04/25
- [elpa] master ea79f0e 135/272: New API function ivy-set-display-transformer, Oleh Krehel, 2016/04/25
- [elpa] master b2d2b82 209/272: counsel.el (counsel-grep-action): Improve cleanup, Oleh Krehel, 2016/04/25
- [elpa] master 8c4f595 233/272: Fix remapping commit c9b6e0, Oleh Krehel, 2016/04/25
- [elpa] master 6fae6e0 259/272: counsel.el (counsel-grep-or-swiper): Use swiper when narrowed, Oleh Krehel, 2016/04/25
- [elpa] master 1b4e819 218/272: ivy.el (ivy-next-history-element): Simplify, Oleh Krehel, 2016/04/25
- [elpa] master b5a9dc5 255/272: ivy.el (ivy--reset-state): file-directory-p needs a string, Oleh Krehel, 2016/04/25
- [elpa] master 6fc36b5 210/272: option to add newline after ivy-read prompt,
Oleh Krehel <=
- [elpa] master 9899547 235/272: ivy.el (ivy-action): New face, Oleh Krehel, 2016/04/25
- [elpa] master 63b96a1 250/272: Fix counsel-grep-last-line bug, Oleh Krehel, 2016/04/25
- [elpa] master a891df3 264/272: swiper.el (swiper--multi-candidates): Add check, Oleh Krehel, 2016/04/25
- [elpa] master 5ce2623 223/272: counsel.el (counsel-git): Add "j" action, Oleh Krehel, 2016/04/25
- [elpa] master ee27e27 161/272: ivy.el (ivy-occur-revert-buffer): Move code to swiper-occur, Oleh Krehel, 2016/04/25
- [elpa] master 3dcb07d 237/272: Allow to customize the action hint formatter, Oleh Krehel, 2016/04/25
- [elpa] master 39a458e 272/272: Merge commit 'db005182ad0fd05c07e8e5c085abe6c750e6c578' from ivy, Oleh Krehel, 2016/04/25