297 Commits

Author SHA1 Message Date
Oleh Krehel
a9119039ee avy.el (avy-goto-word-1): Work for "^A"-"^Z"
Fixes #167
2016-08-03 15:36:25 +02:00
Oleh Krehel
a5fb9369e7 avy.el (avy-resume): Make it show up in M-x
Re #165
2016-07-22 14:12:45 +02:00
Oleh Krehel
dd112c88e2 avy.el (avy-goto-subword-1): Check char-after
When at `point-max', `char-after' returns nil. This can't be passed to `downcase'.

Fixes #163
2016-07-11 17:58:26 +02:00
Xu Ma
07153e4fb7 Add kill and save region functionality.
Fixes #158
2016-07-10 09:41:13 +02:00
Oleh Krehel
e460d7ebe8 avy.el (flyspell-correct-word-before-point): Declare 2016-07-08 09:59:20 +02:00
MadAnd
20ecb9bed6 Use flyspell if its minor mode is active
Fixes #160
Fixes #161
2016-07-03 08:17:34 +02:00
justbur
b522bfe320 avy.el (avy-resume): Add
Holds last command avy command after user input. This is a quick way to
bring back the same markers after a jump.

Fixes #157
2016-06-20 21:40:05 +02:00
Oleh Krehel
05a5003c2b avy.el: Fix linum-related compile warnings 2016-06-18 08:22:14 +02:00
justbur
5515f28779 Allow using symbols instead of words in word cmds
* avy.el (avy-goto-word-0-regexp): Add symbol option
 * avy.el (avy-goto-word-1): Add symbol boundary optional arg
 * avy.el (avy-goto-symbol-1): Add
 * avy.el (avy-goto-symbol-1-above): Add
 * avy.el (avy-goto-symbol-1-below): Add
2016-06-17 20:16:08 -04:00
Oleh Krehel
4e4c488eef Add avy-linum-mode
* avy.el (avy--linum-strings): New defun.
(avy--linum-update-window): New defun. This is a copy-paste of
`linum-update-window' with just a few lines added.
(avy-linum-mode): New minor mode. Currently, only works with
`avy-all-windows' set to nil.
(avy--line): When `avy-linum-mode' is on, don't display
overlays. Instead, display a simple message.

Fixes #155
2016-06-13 22:53:06 +02:00
Oleh Krehel
430d75085f avy.el (avy--line-cands): Split away from avy--line
* avy.el (avy--line): Update.
2016-06-13 22:31:39 +02:00
Oleh Krehel
4dcf0a9a9a avy.el (avy-goto-char-2): Translate "RET" to "C-j"
Fixes #153
2016-06-01 07:58:16 +02:00
justbur
33af738ae7 avy.el (avy-goto-word-1-above): Add
avy.el (avy-goto-word-1-below): Add
2016-05-19 08:36:18 -04:00
Oleh Krehel
d644be1399 avy.el (avy-goto-char-2-above): Simplify
* avy.el (avy-goto-char-2): Add BEG and END.
(avy-goto-char-2-below): Simplify.
2016-05-18 08:39:11 +02:00
justbur
ba950a0ad5 avy.el (avy-goto-char-2-above): Add
avy.el (avy-goto-char-2-below): Add

These are versions of avy-goto-char-2 that are restricted to matches
before or after the point in the current window.

Fixes #148
2016-05-17 12:52:35 -04:00
Mark Triggs
58bc417c55 Escape regex metacharacters for standard isearch
Doing an isearch for '[' and then invoking avy-isearch would trigger an
error like:

     Invalid regexp: "Unmatched [ or [^"

If we are not doing a regex-based search, escape the search string to
avoid these kind of issues.
2016-05-15 15:15:51 +10:00
York Zhao
2e3c2f7c88 Add new command `avy-move-region'
Fixes #75
2016-05-13 07:52:33 +02:00
Junpeng Qiu
85a384a151 Add char at window start for avy-goto-subword-0 2016-05-03 22:01:06 -04:00
Oleh Krehel
53706d2ebf avy.el (avy-all-windows-alt): Change the default to nil
Fixes #144
2016-04-21 10:24:59 +02:00
Oleh Krehel
4c072be8e6 README.md (avy-goto-char-timer): Add entry
Re #143
2016-04-18 14:39:32 +02:00
Oleh Krehel
5ba3602538 Assign avy-action-ispell to "i"
Re #142
2016-04-14 13:15:00 +02:00
Emmanuel Denloye-Ito
c0db3642d6 Add avy-action-ispell to avy.el
The point should return to its starting location after the desired word
is corrected. As is the case for the other avy-action-{something}
functions, this function is also added to the avy-dispatch-alist.

Fixes #142
2016-04-14 13:12:26 +02:00
Oleh Krehel
a80f95c015 Add "X" dispatch to kill a word without moving there
* avy.el (avy-dispatch-alist): Extend.
(avy-action-kill-move): Rename from `avy-action-kill'.
(avy-action-kill-stay): New defun.

To kill a word without moving there:

1. `avy-goto-word-1' or `avy-goto-char'.
2. word's letter.
3. X.
4. words' overlay chars.
2016-04-02 19:49:10 +02:00
Oleh Krehel
9e61f786d8 avy.el: Improve defcustom :type
* avy.el (avy-keys-alist):
(avy-styles-alist): Add 'function as a possible key-type.
2016-03-26 09:46:03 +01:00
Oleh Krehel
3b75d9520d Make "C-g" and "ESC" fail silently when reading char
* avy.el (avy-ignored-modes): Add type.
(avy-handler-default): Silence "C-g" and "ESC".
(avy-goto-line): Call `avy-handler-function' instead of
`avy-handler-default'.
(avy-timeout-seconds): Add type.

Fixes #137
2016-03-16 13:48:29 +01:00
Oleh Krehel
5f76c9d16e avy.el (avy-goto-word-0-regexp): New defcustom
* avy.el (avy-goto-word-0): Use `avy-goto-word-0-regexp'.

Fixes #136
2016-02-29 09:33:07 +01:00
Oleh Krehel
16370f92ec avy.el (avy--goto): Remove obsolete alias
* avy.el (avy--with-avy-keys): Remove obsolete.

Also clean up whitespace - too long lines and wrong indentation.
2016-02-26 20:54:14 +01:00
Oleh Krehel
730581ae87 avy.el: Fix compilation warning
Fixes #134
2016-02-03 08:57:25 +01:00
Oleh Krehel
5f6dd00f5d avy.el (avy-action-copy): Save window and frame
Fixes #133
2016-01-27 09:22:03 +01:00
Oleh Krehel
11fbd70347 Bump version 2016-01-23 14:34:14 +01:00
Oleh Krehel
369af594e5 avy.el (avy--overlay): Fix interaction with goto-address-mode
The other overlay has no priority, but sets a face. That face is
overridden by the avy overlay (which has priority).

Fixes abo-abo/ace-link#24
0.4.0
2016-01-20 09:22:34 +01:00
denin
15d0679385 copy/move line to an initial window 2016-01-06 18:23:14 +03:00
Oleh Krehel
212a132d5f Don't shorten selector string for visual-line-mode and bolp
* avy.el (avy--overlay-at-full): When at an empty line, there's plenty
  of space to display the full selector. No need to truncate it to avoid
  visual-line-mode reformatting the buffer text.

Fixes #129
2016-01-06 10:36:33 +01:00
OrionU
dd80749441 Add case fold search to avy-goto-char-timer
Fixes #128
2016-01-06 09:31:19 +01:00
Oleh Krehel
808bb8011a avy.el (avy--regex-candidates): Modify case-fold-search condition
Fixes #126
2016-01-05 11:45:04 +01:00
Oleh Krehel
bae6fb15d0 avy.el (avy-copy-region): Keep same selectors for the second pass
With `avy-all-windows' t, the call to `avy--line' would change the
window.

Fixes #121
Fixes #120
2016-01-05 11:13:18 +01:00
Oleh Krehel
9d18bf9fc2 avy.el (avy--overlay): Fix overlays at point-max
* avy.el (avy--overlay): When an overlay is requested at `point-max',
  use 'after-string overlay property instead of 'display.

Fixes #125
2015-12-22 11:45:44 +01:00
Oleh Krehel
47035cf4ea avy.el (avy--line): Don't modify avy-action
Fixes #124
2015-12-22 09:18:02 +01:00
Aleksey Fedotov
72ecbfa220 avy.el (avy-goto-line): fix for narrowed regions
When 'avy-goto-line' is called with numbered argument, it tries to mimic
behaviour of 'goto-line'. However, if some part of text is hidden by
narrowing, 'avy-goto-line' failed to account for that.

This patch temporarily disables narrowing, jumps on line and then
restores narrowing, just like 'goto-line' does.

Fixes #122
Fixes #123
2015-12-19 15:30:47 +01:00
Oleh Krehel
b1a1953e1c Customize extra chars for avy-goto-subword-1
* avy.el (avy-subword-extra-word-chars): New defcustom.
(avy-goto-subword-0): Modify the syntax table temporarily using
`avy-subword-extra-word-chars'.

Fixes #116
2015-12-07 14:56:58 +01:00
Oleh Krehel
fa6d1e1242 avy.el (avy-copy-region): Fix for multi-buffer use
Fixes #119
2015-12-07 11:01:52 +01:00
Oleh Krehel
54074c764d avy.el (avy-all-windows-alt): New defcustom
* avy.el (avy-dowindows): Use `avy-all-windows-alt'.
(avy--regex-candidates):
(avy--read-candidates): Use `current-prefix-arg'. At some later point, it
could be passed as an argument instead.

Fixes #118
2015-12-07 10:36:01 +01:00
Oleh Krehel
a45159a8ca avy.el (avy-goto-line-above): Exclude the current line
* avy.el (avy-goto-line-below): Exclude the current line

Re #106
2015-12-03 12:53:12 +01:00
Oleh Krehel
4132dd647e avy.el (avy-goto-line-above): Work in a single window
* avy.el (avy-goto-line-above):
(avy-goto-line-below): Bind `avy-all-windows' to nil.

Re #106
2015-12-03 10:20:23 +01:00
Oleh Krehel
a0414291f1 avy.el (avy-copy-region): Obey avy-line-insert-style
Re #117
2015-12-02 09:38:18 +01:00
Oleh Krehel
54fb4d65e1 avy.el (avy-line-insert-style): Customize avy-copy-line, avy-move-line
* avy.el (avy-copy-line):
(avy-move-line): Update.

Fixes #117
2015-12-01 14:37:09 +01:00
Dale Sedivec
4a23a0d63e Fix De Bruijn "No catch for tag" error
When using avy-goto-line and typing a line number with avy-style
de-bruijn, you would get an error after entering your line number and
pressing RET:

    No catch for tag: done, exit

I believe this is because avy-read is wrapped with (catch 'done ...) but
avy-read-de-bruijn doesn't catch done.  This adds the catch to
avy-read-de-bruijn.
2015-11-15 10:37:08 -06:00
Oleh Krehel
f341c2f18f avy.el (avy--find-visible-regions): Add bounds safety
Re abo-abo/lispy#139
2015-11-14 11:17:53 +01:00
Oleh Krehel
edf1259f25 avy.el (avy--read-candidates): Use avy-dowindows
Fixes #114
2015-11-11 13:50:04 +01:00
Oleh Krehel
1b78fb0d89 Improve the faces for the last change
* avy.el (avy--overlay-at-full): Update.
2015-10-26 08:59:27 +01:00