[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master abe150c 082/110: Introduce single candidate jump customiza
From: |
Oleh Krehel |
Subject: |
[elpa] master abe150c 082/110: Introduce single candidate jump customization |
Date: |
Sat, 11 May 2019 10:15:49 -0400 (EDT) |
branch: master
commit abe150c7bdc99623df6bd19669dc28f145c8fa01
Author: Yuki <address@hidden>
Commit: Yuki <address@hidden>
Introduce single candidate jump customization
---
avy.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index 765779f..50f0214 100644
--- a/avy.el
+++ b/avy.el
@@ -244,6 +244,10 @@ When nil, punctuation chars will not be matched.
Typically, these modes don't use the text representation."
:type 'list)
+(defcustom avy-single-candidate-jump t
+ "In case there is only one candidate jumps directly to it."
+ :type 'boolean)
+
(defvar avy-ring (make-ring 20)
"Hold the window and point history.")
@@ -746,7 +750,7 @@ Set `avy-style' according to COMMMAND as well."
(let ((len (length candidates)))
(cond ((= len 0)
nil)
- ((= len 1)
+ ((and (= len 1) avy-single-candidate-jump)
(car candidates))
(t
(unwind-protect
- [elpa] master 4f1b8a1 086/110: avy.el: Fix compiler warnings, (continued)
- [elpa] master 4f1b8a1 086/110: avy.el: Fix compiler warnings, Oleh Krehel, 2019/05/11
- [elpa] master e7c0fc0 088/110: avy.el (avy-pre-action): New defvar, Oleh Krehel, 2019/05/11
- [elpa] master bcc0cb0 085/110: avy.el (avy-org-refile-as-child): Don't refile when avy aborted, Oleh Krehel, 2019/05/11
- [elpa] master 6331b7a 071/110: avy.el (avy--process): Fix avy-goto-line for empty buffer, Oleh Krehel, 2019/05/11
- [elpa] master fd7b929 078/110: Add option to display an indented goto line overlay, Oleh Krehel, 2019/05/11
- [elpa] master 70e384a 073/110: avy.el (avy--process-1): Extract, Oleh Krehel, 2019/05/11
- [elpa] master cd8fb10 081/110: avy.el (avy--read-candidates): Quit on ESC, Oleh Krehel, 2019/05/11
- [elpa] master df4c4ac 084/110: Show number of matches so far in prompt, Oleh Krehel, 2019/05/11
- [elpa] master 93d4bd2 066/110: avy.el: Fix indentation, Oleh Krehel, 2019/05/11
- [elpa] master 157486a 079/110: avy.el: Fix compiler warning, Oleh Krehel, 2019/05/11
- [elpa] master abe150c 082/110: Introduce single candidate jump customization,
Oleh Krehel <=
- [elpa] master a29558d 080/110: Add C-h/DEL/RET info to README for avy-goto-char-timer, Oleh Krehel, 2019/05/11
- [elpa] master 7c40f5e 075/110: avy.el (avy--process): Fix the candidates list being modified when restarting, Oleh Krehel, 2019/05/11
- [elpa] master 58e8636 070/110: avy.el (avy-action-zap-to-char): More convenient use-cases, Oleh Krehel, 2019/05/11
- [elpa] master 34d3531 067/110: avy.el (avy-action-goto): Remove lag, Oleh Krehel, 2019/05/11
- [elpa] master 6459f7f 065/110: README.md: Mention avy-resume, Oleh Krehel, 2019/05/11
- [elpa] master d4aa876 063/110: Note that change to store full avy path is for external packages, Oleh Krehel, 2019/05/11
- [elpa] master 793a5e2 061/110: avy.el (avy-action-teleport): Add save-excursion, Oleh Krehel, 2019/05/11
- [elpa] master 08370cd 069/110: Add option to limit avy-goto-subword-0 scope, Oleh Krehel, 2019/05/11
- [elpa] master 2d613eb 068/110: avy.el (avy-action-zap-to-char): Add and bind to "z", Oleh Krehel, 2019/05/11
- [elpa] master 869261a 064/110: Display actual character that triggered an error, Oleh Krehel, 2019/05/11