241 Commits

Author SHA1 Message Date
Oleh Krehel
3bf83140fa avy.el (avy-goto-line): Can cancel with ESC
Fixes #299
2020-03-11 12:06:02 +01:00
Jonas Bernoulli
cf95ba9582 avy.el (avy-with): Fix typo in doc-string 2019-11-06 13:34:46 +01:00
Daniel H. Leidisch
f9c15c573c Fix subword commands with custom order. 2019-10-25 01:10:14 +02:00
Oleh Krehel
87394c9a88 avy.el (avy-isearch): Return relevant result
Fixes #281
2019-09-25 12:54:05 +02:00
Oleh Krehel
5f2eba5f59 avy.el (avy-isearch): Bind avy-case-fold-search to case-fold-search
Fixes #280
2019-09-25 12:50:48 +02:00
Oleh Krehel
455ebec6f3 avy.el (avy-process): Amend last commit for avy-goto-char-timer
Re #283
2019-09-25 12:42:34 +02:00
Federico Tedin
5127f993f9 avy.el (avy-process): Restart on fail for avy-style 'words
Fixes #283
2019-09-25 12:40:53 +02:00
Oleh Krehel
034de4c0e9 avy.el: Add -above and -below versions of avy-goto-whitespace-end
Re #278
2019-08-28 11:51:02 +02:00
Oleh Krehel
27d1af3fa6 avy.el (avy-goto-whitespace-end): New command
* avy.el (avy--regex-candidates): Allow `group' to be a function.
(avy-jump): Pass `group' to `avy--regex-candidates'.

Fixes #278
2019-08-27 20:07:10 +02:00
Oleh Krehel
01a311ca6a avy.el: Get rid of magic char numbers 2019-08-22 16:32:05 +02:00
Oleh Krehel
66886e265c avy.el (avy-read): Don't call `avy--key-to-char' too early
If the key is intended for dispatch, it's not necessary for
`avy--key-to-char' to encode it as a char.
2019-06-30 17:38:41 +02:00
Oleh Krehel
343fc42de1 avy.el (avy-process): Return nil on "C-g" and "ESC" 2019-06-30 17:26:34 +02:00
Oleh Krehel
aadca9308a avy.el (avy-resume): Work better for avy-goto-timer
Fixes #277
2019-06-25 21:49:51 +02:00
Arte Ebrahimi
f91ae613a8 avy.el (avy-goto-line): Call avy-action-goto only when avy-action is not set
Fixes #274
2019-05-20 11:47:00 +02:00
Yanghao Xie
8686845ed9 avy.el (avy-flyspell-correct-function): Add
Fixes #273
2019-05-14 17:51:15 +02:00
Oleh Krehel
0e59474430 avy.el (avy--read-candidates): Fix docstring
Don't quote key bindings.
This patch was applied in GNU ELPA earlier.
2019-05-11 16:00:29 +02:00
Oleh Krehel
f2cf43b537 doc/Changelog.org: Release 0.5.0
Fixes #271
2019-05-11 15:05:05 +02:00
Oleh Krehel
a7230906c4 avy.el (avy--overlay-at-full): More consistent face order
Fixes #270
2019-05-06 17:06:39 +02:00
Oleh Krehel
4d52b5cb7e avy.el (avy--line-cands): Allow "invisible" 'org-link
Fixes #269
2019-04-04 10:55:30 +02:00
Oleh Krehel
85b5d574cd avy.el (avy-jump): Add predicate argument
Fixes #267
2019-03-28 17:17:29 +01:00
Oleh Krehel
9a15d1f37b avy.el (avy-show-dispatch-help): Add and bind to "?"
Fixes abo-abo/ace-window#91
2019-03-25 11:46:40 +01:00
Oleh Krehel
152b07fe5a avy.el (avy-process): Return res 2019-03-25 11:46:40 +01:00
Oleh Krehel
fd0101e9e3 avy.el (avy-push-mark): Turn off message 2019-03-25 11:46:40 +01:00
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