269 Commits

Author SHA1 Message Date
Oleh Krehel
e9310715e4 When selecting from many windows, prioritize the current
* avy-jump.el (avy-dowindows): Update.

Fixes #14
2015-05-08 19:21:48 +02:00
Oleh Krehel
bca96ae3b4 Add avy-goto-char-timer
avy-jump.el (avy-goto-char-timer): New command. Generalize
`avy-goto-char' and `avy-goto-char-2' with a timer.

* avy-jump.el (avy-timeout-seconds): New defcustom.

Fixes #13
2015-05-08 18:19:40 +02:00
Oleh Krehel
e49f6d02eb avy-jump.el (avy--regex-candidates): Update arglist
* avy-jump.el (avy--regex-candidates): Remove the optional window arg.
2015-05-08 18:08:36 +02:00
Oleh Krehel
32003515c8 avy-jump.el (avy-setup-default): Setup some bindings
* README.md: Add a description.

Fixes #10
2015-05-08 15:22:21 +02:00
Oleh Krehel
f2290f262a avy.el: Update commentary 2015-05-08 11:51:07 +02:00
Oleh Krehel
ca1ca04647 Add avy-goto-subword-1
Fixes #8
2015-05-08 11:40:55 +02:00
Oleh Krehel
b2112e0fe9 avy-jump.el (avy-goto-word-1): Fix for "."
Fixes #7
2015-05-07 15:38:08 +02:00
Tassilo Horn
903e172517 Special-case char RET to allow for jumping to end-of-lines.
With this change you can use `avy-goto-char' also to jump to the end of
some currently visible line.  E.g., C-c j <return> (assuming C-c j is
bound to `avy-goto-char') makes all line endings jump targets.

`avy--overlay-at' had to be adapted so that the overlay at \n doesn't
make the line-break disappear.

`avy--overlay' had to be adapted in order not to put an overlay on the
char after (point-max) in case `avy--overlay-post' is used.  (Honestly,
this feature is a bit awkward with 'post overlays where the jump
location is visualized as first char in the next line.)
2015-05-07 14:53:22 +02:00
Oleh Krehel
487d5ea201 Abstract windows and rely on subword
* avy-jump.el (avy-dowindows): New macro.
(avy--regex-candidates): Use `avy-dowindows'.
(avy-goto-subword-0): Rely on `subword-backward'.
(avy--line): Use `avy-dowindows'.

Fixes #4
2015-05-07 13:31:18 +02:00
Oleh Krehel
e4f493ef83 README.md: Add command descriptions 2015-05-07 13:04:05 +02:00
Oleh Krehel
974e55b792 avy-jump.el (avy--line): Avoid image-mode and doc-view-mode
Fixes #1
2015-05-07 13:02:20 +02:00
Oleh Krehel
e9d2e60965 Customize the leading char style for chars and words
* avy-jump.el (avy--style-fn): New defun.
(avy--generic-jump): Add a STYLE arg.
(avy-goto-char-style): New defcustom.
(avy-goto-word-style): New defcustom.
(avy-goto-char): Update.
(avy-goto-char-2): Update.
(avy-goto-word-0): Update.
(avy-goto-word-1): Simplify.
(avy-goto-subword-0): Update doc.

Fixes #5
2015-05-07 12:42:58 +02:00
Oleh Krehel
18cf1ef995 README.md: add
Fixes #2
2015-05-07 12:18:01 +02:00
Tassilo Horn
33546b65c4 Fix avy-goto-subword-0
avy-goto-subword-0's regexp requires that case-fold-search is nil, so
let-bind it.
2015-05-07 10:28:24 +02:00
Tassilo Horn
1d184b0e2a Regexp-quote strings of avy-goto-char* functions.
Before this commit, avy-goto-char with char ^ would inf-loop because the
resulting string "^" is treated as a regular expressions.  However, with
the avy-goto-char* function, the char should be treated literally.  For
example, in Clojure ^:foo is treated as metadata annotation and thus ^
is a likely jump target.
2015-05-07 10:22:42 +02:00
Oleh Krehel
567727096a Move obsoletes to one place 2015-05-06 09:56:02 +02:00
Oleh Krehel
1684e6af02 Avoid image-mode and doc-view-mode
* avy-jump.el (avy--regex-candidates): Update.

Re #1
2015-05-05 17:39:41 +02:00
Oleh Krehel
6c1f2f6423 Move from "avi-" to "avy-", leave old stuff obsolete
* avy-jump.el (avi-keys):
(avi-background):
(avi-word-punc-regexp):
(avi-lead-face):
(avi--goto):
(avi--process):
(avi-all-windows):
(avi-goto-char):
(avi-goto-char-2):
(avi-isearch):
(avi-goto-word-0):
(avi-goto-subword-0):
(avi-goto-word-1):
(avi-goto-line):
(avi-copy-line):
(avi-move-line):
(avi-copy-region): Make obsolete.
2015-05-05 17:01:13 +02:00
Oleh Krehel
5d2979b911 Initial import 2015-05-05 16:29:21 +02:00