218 Commits

Author SHA1 Message Date
Oleh Krehel
7d73ceeb74 avy.el: Use avy-process instead of avy--process
Re #266
2019-03-19 19:13:51 +01:00
Ivan Yonchovski
8db2759adf Change avy--process to accept cleanup function
Renamed to `avy-process' to indicate that it is used from another packages.

Fixes #255
Fixes #266
2019-03-19 19:11:15 +01:00
Oleh Krehel
e80251056d avy.el (avy-jump): New API, don't use avy--generic-jump
Fixes #265
2019-02-04 13:01:07 +01:00
Oleh Krehel
91240220ad avy.el (avy--generic-jump): Update docstring about removed arg 2019-01-26 21:29:12 +01:00
Oleh Krehel
b19a23af27 avy.el (avy--visible-p): buffer-invisibility-spec can be t
In that case, according to the doc if (get-char-property s 'invisible)
is non-nil, it's invisible.

Fixes #264
Re #261
2019-01-22 15:20:20 +01:00
Oleh Krehel
5b3676f1a4 avy.el (avy-next): New command to go to the next candidate after avy-read
Example config:

    (defhydra hydra-avy-cycle ()
      ("j" avy-next "next")
      ("k" avy-prev "prev")
      ("q" nil "quit"))

    (global-set-key (kbd "C-M-'") 'hydra-avy-cycle/body)

After e.g. `avy-goto-char' or `avy-goto-char-timer', use the above
hydra to cycle between the last candidates.

Fixes #254
2019-01-22 12:59:26 +01:00
Oleh Krehel
74501e1235 avy.el: More fixes to org-toggle-link-display
Fix `avy-goto-subword-0', `avy-goto-subword-1', `avy-goto-char-timer'.

Re #261
2019-01-21 17:44:22 +01:00
Oleh Krehel
e9f4d85b88 avy.el (avy-goto-char-timer): Obey avy-background for initial search
Fixes #259
2019-01-17 17:47:18 +01:00
Oleh Krehel
002b8f3451 avy.el (avy--visible-p): Add to fix org-toggle-link-display
Fixes #261
2019-01-17 17:39:01 +01:00
Oleh Krehel
909483e104 avy.el (avy--process): Make `overlay-fn' arg optional 2019-01-15 15:25:30 +01:00
Oleh Krehel
16482e0012 avy.el (avy--generic-jump): Remove `style' arg 2019-01-15 15:19:30 +01:00
Oleh Krehel
e7c0fc046d avy.el (avy-pre-action): New defvar
Fixes #260
2019-01-15 15:14:10 +01:00
whatacold
24b51374be Ignore mistyping when no candidates available
Fixes #256
2018-11-26 18:05:03 +01:00
Oleh Krehel
4f1b8a17d8 avy.el: Fix compiler warnings
Re #258
2018-11-26 18:01:40 +01:00
Adam Porter
bcc0cb0891 avy.el (avy-org-refile-as-child): Don't refile when avy aborted
And ensure refiled heading is visible by calling org-reveal in the
after-refile hook.

When the avy session is aborted with C-g, avy--generic-jump returns
t.  Now we detect that and do not attempt to refile.

Fixes #258
2018-11-26 18:01:30 +01:00
Jiangbin Zhao
df4c4ac488 Show number of matches so far in prompt
Fixes #253
2018-10-09 18:48:31 +02:00
Jiangbin Zhao
c2e2a4a3f2 avy.el (avy--read-candidates): Custom keys for deleting last read char
Add a defcustom for list of events that delete last read char, with
the default being '(8 127) which represents C-h and DEL.

Fixes #251
2018-10-01 10:37:01 +02:00
Yuki
abe150c7bd Introduce single candidate jump customization 2018-09-27 18:08:28 +02:00
Oleh Krehel
cd8fb10759 avy.el (avy--read-candidates): Quit on ESC
Fixes #249
2018-09-13 20:19:19 +02:00
Oleh Krehel
157486aeb1 avy.el: Fix compiler warning 2018-08-14 23:21:25 +02:00
Lane Spangler
fd7b929719 Add option to display an indented goto line overlay
It may be useful to display the overlay for `avy-goto-line` next to the first
non whitespace character on each line so that your eyes do not have to look
across from the code on the line to the left edge of the buffer.

This commit adds a defcustom for `avy-indent-line-overlay` which enables this
new behavior when non nil.
2018-08-13 15:55:01 -04:00
Oleh Krehel
c4e2d50d6d avy.el: avy-goto-char will now display shortest overlays for cands near point
Fixes #242
2018-08-08 17:48:18 +02:00
chm
1de623383e Add avy-goto-end-of-line
Fixes #240
2018-08-06 10:55:56 +02:00
Oleh Krehel
7c40f5e381 avy.el (avy--process): Fix the candidates list being modified when restarting
For example, with multiple windows, `avy-goto-char' followed by "x"
would change the overlays to a subset of the overlays in the current window.
2018-06-15 17:01:33 +02:00
Sebastian Wålinder
7cfe11e3c1 Added ability to display avy candidates from bottom to top
And made scope limitation possible with avy-goto-line-above and below.

Fixes #236
2018-06-12 11:12:13 +02:00
Oleh Krehel
70e384aee5 avy.el (avy--process-1): Extract 2018-06-07 18:17:53 +02:00
Oleh Krehel
8606a8984b avy.el (avy--process): Remove redundant copy-sequence
Hopefully redundant:)
2018-06-07 18:14:38 +02:00
Oleh Krehel
6331b7a6de avy.el (avy--process): Fix avy-goto-line for empty buffer
Fixes #238
2018-06-07 18:11:56 +02:00
Oleh Krehel
58e8636d32 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.
2018-05-14 20:00:23 +02:00
walseb
08370cdbc3 Add option to limit avy-goto-subword-0 scope
Fixes #235
2018-04-15 21:59:21 +02:00
Oleh Krehel
2d613eb050 avy.el (avy-action-zap-to-char): Add and bind to "z"
Fixes #234
2018-03-22 21:33:23 +01:00
Oleh Krehel
34d3531a3c avy.el (avy-action-goto): Remove lag 2017-12-30 11:20:36 +01:00
Oleh Krehel
93d4bd2c67 avy.el: Fix indentation 2017-12-30 11:20:36 +01:00
Bob Weiner
869261ae81 Display actual character that triggered an error
Fixes #227
2017-12-11 18:23:22 +01:00
Bob Weiner
d4aa876154 Note that change to store full avy path is for external packages 2017-12-11 18:17:48 +01:00
Bob Weiner
9489ca9064 Add window selection via mouse button press and fix typo 2017-12-11 18:17:48 +01:00
Oleh Krehel
793a5e22a7 avy.el (avy-action-teleport): Add save-excursion 2017-12-11 17:19:52 +01:00
Edward Betts
631214d11c Correct spelling mistake
Fixes #218
2017-12-11 17:19:01 +01:00
Oleh Krehel
7f83bbc645 avy.el (avy-action-ispell): Adjust for avy-goto-line
Fixes #191
2017-12-10 20:06:35 +01:00
Oleh Krehel
78392e670e avy.el (avy-action-teleport): Adjust for avy-goto-line
Re #191
2017-12-10 20:06:34 +01:00
Oleh Krehel
a25b255b25 avy.el (avy-action-yank): Adjust for avy-goto-line
Re #191
2017-12-10 20:06:33 +01:00
Oleh Krehel
dee0284f3f avy.el (avy-action-kill-move): Adjust for avy-goto-line
Re #191
2017-12-10 20:06:32 +01:00
Oleh Krehel
1b9f061d27 avy.el (avy-action-kill-stay): Adjust for avy-goto-line
Re #191
2017-12-10 20:06:32 +01:00
Oleh Krehel
56f6590c20 avy.el (avy-action-copy): Adjust for avy-goto-line
Re #191
2017-12-10 20:06:30 +01:00
Oleh Krehel
4af1993290 avy.el (avy-read): Update avy-current-path before returning
Re #226
2017-12-10 09:44:23 +01:00
Oleh Krehel
ddf3c580e7 avy.el (avy-handler-default): Fix typo 2017-12-09 17:28:52 +01:00
Oleh Krehel
176f34f491 avy.el (avy-handler-default): Error msg on mouse clicks
Re #226
2017-12-09 14:01:56 +01:00
Bob Weiner
a0ce6a7558 Add avy-mouse-event-window and fix typo
Fixes #226
2017-12-09 14:01:50 +01:00
Nir Friedman
c08fc7c1c6 Add option to match newline in avy-goto-char-timer
Fixes #220
Fixes #225
2017-11-26 18:15:18 +02:00
Christoph Michelbach
9103291214 Update description to be easier to understand. 2017-11-11 18:21:46 +01:00