[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 58e8636 070/110: avy.el (avy-action-zap-to-char): More con
From: |
Oleh Krehel |
Subject: |
[elpa] master 58e8636 070/110: avy.el (avy-action-zap-to-char): More convenient use-cases |
Date: |
Sat, 11 May 2019 10:15:46 -0400 (EDT) |
branch: master
commit 58e8636d32d0e0a987f60e1620787951f31d0020
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-action-zap-to-char): More convenient use-cases
Use case 1:
Start (cursor is |):
This is my sentence and |there is some description
avy-goto-char "d" in description, action "z" results in:
This is my sentence and |description
Use case 2:
Same start;
avy-goto-char "t" in "This", action "z" results in:
|there is some description
The nice thing is that the both sequences are reversible with "C-y".
Fixes #234.
---
avy.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/avy.el b/avy.el
index 3fc645e..6835e91 100644
--- a/avy.el
+++ b/avy.el
@@ -691,8 +691,8 @@ Set `avy-style' according to COMMMAND as well."
(defun avy-action-zap-to-char (pt)
"Kill from point up to PT."
(if (> pt (point))
- (kill-region (point) (1+ pt))
- (kill-region pt (1+ (point)))))
+ (kill-region (point) pt)
+ (kill-region pt (point))))
(defun avy-action-teleport (pt)
"Kill sexp starting on PT and yank into the current location."
- [elpa] master 6331b7a 071/110: avy.el (avy--process): Fix avy-goto-line for empty buffer, (continued)
- [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, 2019/05/11
- [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 <=
- [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
- [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