[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c08fc7c 049/110: Add option to match newline in avy-goto-c
From: |
Oleh Krehel |
Subject: |
[elpa] master c08fc7c 049/110: Add option to match newline in avy-goto-char-timer |
Date: |
Sat, 11 May 2019 10:15:41 -0400 (EDT) |
branch: master
commit c08fc7c1c6997f7e843175e632d3d812e9f5a5b5
Author: Nir Friedman <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add option to match newline in avy-goto-char-timer
Fixes #220
Fixes #225
---
avy.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index 70e1ca4..877e6b4 100644
--- a/avy.el
+++ b/avy.el
@@ -1768,6 +1768,10 @@ newline."
"How many seconds to wait for the second char."
:type 'float)
+(defcustom avy-enter-times-out t
+ "Whether enter exits avy-goto-char-timer early. If nil it matches newline"
+ :type 'boolean)
+
(defun avy--read-candidates (&optional re-builder)
"Read as many chars as possible and return their occurences.
At least one char must be read, and then repeatedly one next char
@@ -1802,7 +1806,9 @@ Otherwise, the whole regex is highlighted."
(cond
;; Handle RET
((= char 13)
- (setq break t))
+ (if avy-enter-times-out
+ (setq break t)
+ (setq str (concat str (list ?\n)))))
;; Handle C-h, DEL
((memq char '(8 127))
(let ((l (length str)))
- [elpa] master 78392e6 058/110: avy.el (avy-action-teleport): Adjust for avy-goto-line, (continued)
- [elpa] master 78392e6 058/110: avy.el (avy-action-teleport): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 7f83bbc 059/110: avy.el (avy-action-ispell): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master a25b255 057/110: avy.el (avy-action-yank): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 631214d 060/110: Correct spelling mistake, Oleh Krehel, 2019/05/11
- [elpa] master ddf3c58 052/110: avy.el (avy-handler-default): Fix typo, Oleh Krehel, 2019/05/11
- [elpa] master a0ce6a7 050/110: Add avy-mouse-event-window and fix typo, Oleh Krehel, 2019/05/11
- [elpa] master 9489ca9 062/110: Add window selection via mouse button press and fix typo, Oleh Krehel, 2019/05/11
- [elpa] master 1b9f061 055/110: avy.el (avy-action-kill-stay): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master dee0284 056/110: avy.el (avy-action-kill-move): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master 56f6590 054/110: avy.el (avy-action-copy): Adjust for avy-goto-line, Oleh Krehel, 2019/05/11
- [elpa] master c08fc7c 049/110: Add option to match newline in avy-goto-char-timer,
Oleh Krehel <=
- [elpa] master 245b5d6 046/110: avy.el: Fix compile warnings, Oleh Krehel, 2019/05/11
- [elpa] master 0ed6408 043/110: avy.el: Fix checkdoc warnings, Oleh Krehel, 2019/05/11
- [elpa] master 36f768d 047/110: avy.el (avy-words): Specify custom type, Oleh Krehel, 2019/05/11
- [elpa] master 9103291 048/110: Update description to be easier to understand., Oleh Krehel, 2019/05/11
- [elpa] master f4c45d3 044/110: avy.el: Add org-mode commands for jumping to and refiling headings, Oleh Krehel, 2019/05/11
- [elpa] master 4af1993 053/110: avy.el (avy-read): Update avy-current-path before returning, Oleh Krehel, 2019/05/11
- [elpa] master 176f34f 051/110: avy.el (avy-handler-default): Error msg on mouse clicks, Oleh Krehel, 2019/05/11
- [elpa] master 8556274 045/110: avy.el (avy-org-goto-heading-timer): Simplify, Oleh Krehel, 2019/05/11
- [elpa] master 83859c3 040/110: avy.el: Add new avy-style to use words as sequences, Oleh Krehel, 2019/05/11
- [elpa] master 240d717 041/110: Makefile: Add target checkdoc to check documentation guidelines of lisp files, Oleh Krehel, 2019/05/11