File: avy.el.html

With Avy, you can move point to any position in Emacs – even in a different window – using very few keystrokes. For this, you look at the position where you want point to be, invoke Avy, and then enter the sequence of characters displayed at that position.

If the position you want to jump to can be determined after only issuing a single keystroke, point is moved to the desired position immediately after that keystroke. In case this isn't possible, the sequence of keystrokes you need to enter is comprised of more than one character. Avy uses a decision tree where each candidate position is a leaf and each edge is described by a character which is distinct per level of the tree. By entering those characters, you navigate the tree, quickly arriving at the desired candidate position, such that Avy can move point to it.

Note that this only makes sense for positions you are able to see when invoking Avy. These kinds of positions are supported:

* character positions
* word or subword start positions
* line beginning positions
* link positions
* window positions

If you're familiar with the popular ace-jump-mode package, this package does all that and more, without the implementation headache.

Defined variables (41)

avy--overlay-offsetThe offset to apply in ‘avy--overlay’.
avy--overlays-backHold overlays for when ‘avy-background’ is t.
avy--overlays-leadHold overlays for leading chars.
avy-actionFunction to call at the end of select.
avy-action-oneshotFunction to call once at the end of select.
avy-all-windowsDetermine the list of windows to consider in search of candidates.
avy-all-windows-altThe alternative ‘avy-all-windows’ for use with C-u.
avy-backgroundWhen non-nil, a gray background will be added during the selection.
avy-case-fold-searchNon-nil if searches should ignore case.
avy-commandStore the current command symbol.
avy-current-pathStore the current incomplete path during ‘avy-read’.
avy-del-last-char-byList of event types, i.e. key presses, that delete the last
avy-dispatch-alistList of actions for ‘avy-handler-default’.
avy-enter-times-outWhether enter exits avy-goto-char-timer early. If nil it matches newline
avy-escape-charsList of characters that quit avy during ‘read-char’.
avy-flyspell-correct-functionFunction called to correct word by ‘avy-action-ispell’ when
avy-goto-word-0-regexpRegexp that determines positions for ‘avy-goto-word-0’.
avy-handler-functionA function to call for a bad ‘read-key’ in ‘avy-read’.
avy-highlight-firstWhen non-nil highlight the first decision char with ‘avy-lead-face-0’.
avy-ignored-modesList of modes to ignore when searching for candidates.
avy-indent-line-overlayWhen non-nil, display line overlay next to the first non-whitespace character.
avy-key-to-char-alistAn alist from non-character keys to printable chars used in avy overlays.
avy-keysDefault keys for jumping.
avy-keys-alistAlist of ‘avy-jump’ commands to ‘avy-keys’ overriding the default ‘avy-keys’.
avy-last-candidatesStore the last candidate list.
avy-lead-facesFace sequence for ‘avy--overlay-at-full’.
avy-line-insert-styleHow to insert the newly copied/cut line.
avy-linum-modeNon-nil if Avy-Linum mode is enabled.
avy-linum-mode-hookHook run after entering or leaving ‘avy-linum-mode’.
avy-orders-alistAlist of candidate ordering functions.
avy-pre-actionFunction to call before ‘avy-action’ is called.
avy-ringHold the window and point history.
avy-single-candidate-jumpIn case there is only one candidate jumps directly to it.
avy-styleThe default method of displaying the overlays.
avy-styles-alistAlist of ‘avy-jump’ commands to the style for each command.
avy-subword-extra-word-charsA list of characters that should temporarily match "\w".
avy-textStore the input read by ‘avy--read-candidates’.
avy-timeout-secondsHow many seconds to wait for the second char.
avy-translate-char-functionFunction to translate user input key into another key.
avy-word-punc-regexpRegexp of punctuation chars that count as word starts for ‘avy-goto-word-1.
avy-wordsWords to use in case ‘avy-style’ is set to ‘words’.

Defined functions (101)

avy--de-bruijn(KEYS N)
avy--done()
avy--find-visible-regions(RBEG REND)
avy--generic-jump(REGEX WINDOW-FLIP &optional BEG END)
avy--key-to-char(C)
avy--line(&optional ARG BEG END BOTTOM-UP)
avy--line-cands(&optional ARG BEG END BOTTOM-UP)
avy--linum-strings()
avy--linum-update-window(_ WIN)
avy--make-backgrounds(WND-LIST)
avy--next-invisible-point()
avy--next-visible-point()
avy--old-str(PT WND)
avy--overlay(STR BEG END WND &optional COMPOSE-FN)
avy--overlay-at(PATH LEAF)
avy--overlay-at-full(PATH LEAF)
avy--overlay-post(PATH LEAF)
avy--overlay-pre(PATH LEAF)
avy--path-alist-1(LST SEQ-LEN KEYS)
avy--process(CANDIDATES &optional OVERLAY-FN CLEANUP-FN)
avy--process-1(CANDIDATES OVERLAY-FN &optional CLEANUP-FN)
avy--read-candidates(&optional RE-BUILDER)
avy--regex-candidates(REGEX &optional BEG END PRED GROUP)
avy--remove-leading-chars()
avy--style-fn(STYLE)
avy--update-offset-and-str(OFFSET STR LEP)
avy--visible-p(S)
avy-action-copy(PT)
avy-action-goto(PT)
avy-action-ispell(PT)
avy-action-kill-move(PT)
avy-action-kill-stay(PT)
avy-action-mark(PT)
avy-action-teleport(PT)
avy-action-yank(PT)
avy-action-yank-line(PT)
avy-action-zap-to-char(PT)
avy-candidate-beg(LEAF)
avy-candidate-end(LEAF)
avy-candidate-wnd(LEAF)
avy-copy-line(ARG)
avy-copy-region(ARG)
avy-dowindows(FLIP &rest BODY)
avy-goto-char(CHAR &optional ARG)
avy-goto-char-2(CHAR1 CHAR2 &optional ARG BEG END)
avy-goto-char-2-above(CHAR1 CHAR2 &optional ARG)
avy-goto-char-2-below(CHAR1 CHAR2 &optional ARG)
avy-goto-char-in-line(CHAR)
avy-goto-char-timer(&optional ARG)
avy-goto-end-of-line(&optional ARG)
avy-goto-line(&optional ARG)
avy-goto-line-above(&optional OFFSET BOTTOM-UP)
avy-goto-line-below(&optional OFFSET BOTTOM-UP)
avy-goto-subword-0(&optional ARG PREDICATE BEG END)
avy-goto-subword-1(CHAR &optional ARG)
avy-goto-symbol-1(CHAR &optional ARG)
avy-goto-symbol-1-above(CHAR &optional ARG)
avy-goto-symbol-1-below(CHAR &optional ARG)
avy-goto-whitespace-end(ARG &optional BEG END)
avy-goto-whitespace-end-above(ARG)
avy-goto-whitespace-end-below(ARG)
avy-goto-word-0(ARG &optional BEG END)
avy-goto-word-0-above(ARG)
avy-goto-word-0-below(ARG)
avy-goto-word-1(CHAR &optional ARG BEG END SYMBOL)
avy-goto-word-1-above(CHAR &optional ARG)
avy-goto-word-1-below(CHAR &optional ARG)
avy-goto-word-or-subword-1()
avy-handler-default(CHAR)
avy-isearch()
avy-jump
avy-kill-region(ARG)
avy-kill-ring-save-region(ARG)
avy-kill-ring-save-whole-line(ARG)
avy-kill-whole-line(ARG)
avy-linum-mode(&optional ARG)
avy-mouse-event-window(CHAR)
avy-move-line(ARG)
avy-move-region()
avy-multipop(LST N)
avy-next()
avy-order-closest(X)
avy-org-goto-heading-timer(&optional ARG)
avy-org-refile-as-child()
avy-pop-mark()
avy-pre-action-default(RES)
avy-prev()
avy-process(CANDIDATES &optional OVERLAY-FN CLEANUP-FN)
avy-push-mark()
avy-read(TREE DISPLAY-FN CLEANUP-FN)
avy-read-de-bruijn(LST KEYS)
avy-read-words(LST WORDS)
avy-resume()
avy-setup-default()
avy-show-dispatch-help()
avy-subdiv(N B)
avy-transpose-lines-in-region()
avy-traverse(TREE WALKER &optional RECUR-KEY)
avy-tree(LST KEYS)
avy-window-list()
avy-with(COMMAND &rest BODY)

Defined faces (1)

avy-background-faceFace for whole window background during selection.