* (avy-org-refile-as-child): Refile current heading to a heading
selected with Avy.
* (avy-org-goto-heading-timer): Jump to a heading selected with Avy.
Like avy-goto-char-timer, but for Org headings.
* (avy--read-string-with-timeout): Read a string from the minibuffer
with a timeout. Basically factored out of avy-goto-char-timer.
* avy.el (avy-command): New defvar.
(avy-with): Actions can now access the symbol from `avy-with' using
`avy-command'.
(avy-action-copy): Copy line for `avy-goto-line'. Copy sexp for all
other commands.
Fixes#191
These commands limit the scope of avy-goto-word-0 to above or below the
point thus save the number of keys required to jump to a certain word
Fixes#186
`end-of-visual-line' is bugged somehow:
This code sometimes produces (point) < beg:
(goto-char beg)
(save-excursion
(end-of-visual-line)
(point))
which should never happen.
Re #179
* 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
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
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.
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
* 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.