]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
8 years agoavy.el (avy-goto-char-timer): Obey avy-styles-alist
Oleh Krehel [Sun, 21 Jun 2015 15:03:18 +0000 (17:03 +0200)]
avy.el (avy-goto-char-timer): Obey avy-styles-alist

Fixes #67

8 years agoBump version to 0.3.0
Oleh Krehel [Fri, 19 Jun 2015 15:58:19 +0000 (17:58 +0200)]
Bump version to 0.3.0

* doc/Changelog.org: Start tracking the changes in each new version.

8 years agoUpdated screenshot image for ivy-goto-char.
Nelson Loyola [Wed, 17 Jun 2015 17:40:48 +0000 (11:40 -0600)]
Updated screenshot image for ivy-goto-char.

Fixes #65
Fixes #64

8 years agoavy.el (avy-goto-word-1): Quote punctuation
Oleh Krehel [Mon, 15 Jun 2015 17:48:08 +0000 (19:48 +0200)]
avy.el (avy-goto-word-1): Quote punctuation

Fixes #63

8 years agoavy.el (avy-style): Switch the default from 'pre to 'at-full
Oleh Krehel [Mon, 15 Jun 2015 14:25:49 +0000 (16:25 +0200)]
avy.el (avy-style): Switch the default from 'pre to 'at-full

8 years agoavy.el (avy--overlay-at-full): Fixup (for overlays-in)
Oleh Krehel [Mon, 15 Jun 2015 14:17:58 +0000 (16:17 +0200)]
avy.el (avy--overlay-at-full): Fixup (for overlays-in)

* avy.el (avy--overlay-at-full): Account for `overlays-in' not being
  returned in the buffer order sometimes: it seems to be random order.
  Instead, look at the minimum of all overlay starts that are on the
  current line.

Fixes #52.

9 years agotargets/avy-init.el: Use the new checkdoc-file
Oleh Krehel [Mon, 8 Jun 2015 11:05:38 +0000 (13:05 +0200)]
targets/avy-init.el: Use the new checkdoc-file

* targets/avy-init.el (checkdoc-file): This function is now available in
  trunk Emacs.

9 years agoavy.el (avy-translate-char-function): Fixup doc
Oleh Krehel [Mon, 8 Jun 2015 11:04:31 +0000 (13:04 +0200)]
avy.el (avy-translate-char-function): Fixup doc

9 years agoavy.el (avy-isearch): Allow different styles
Tim Perkins [Sat, 6 Jun 2015 20:41:57 +0000 (16:41 -0400)]
avy.el (avy-isearch): Allow different styles

Fixes #61

9 years agoAdd `avy-translate-char-function' to translate user input key
York Zhao [Thu, 4 Jun 2015 02:51:42 +0000 (22:51 -0400)]
Add `avy-translate-char-function' to translate user input key

This can be useful for adding mirror key. For example, one can make SPACE an
alternative of 'a', by adding:

(setq avy-translate-char-function
      (lambda (c) (if (= c 32) ?a c)))

to allow typing SPACE instead of character 'a' to jump to the location
highlighted by 'a'.

Fixes #59

9 years agoModify `at-full' and `de-bruijn' overlays to color depth
Oleh Krehel [Wed, 3 Jun 2015 16:19:00 +0000 (18:19 +0200)]
Modify `at-full' and `de-bruijn' overlays to color depth

* avy.el (avy-lead-face-2): New face.
(avy-lead-faces): New defconst. Each element will be used to color the
corresponding depth.
(avy--overlay-at-full): Use `avy-lead-faces' to represent the current
decision depth. For `de-bruijn', prepend the old stuff, so that nothing
moves.

Fixes #53

9 years agoREADME.md: Mention a custom-command tutorial
Oleh Krehel [Wed, 3 Jun 2015 15:30:14 +0000 (17:30 +0200)]
README.md: Mention a custom-command tutorial

Fixes #55

9 years agoavy.el (avy-goto-char-in-line): Fix to this window
Oleh Krehel [Tue, 2 Jun 2015 16:54:04 +0000 (18:54 +0200)]
avy.el (avy-goto-char-in-line): Fix to this window

Fixes #58

9 years agoavy.el (avy-ignored-modes): New defcustom.
Oleh Krehel [Tue, 2 Jun 2015 15:38:38 +0000 (17:38 +0200)]
avy.el (avy-ignored-modes): New defcustom.

* avy.el (avy-dowindows): Use `avy-ignored-modes'.

Fixes #57

9 years agoavy.el (avy-dowindows): Ignore pdf-view-mode
Oleh Krehel [Tue, 2 Jun 2015 14:59:57 +0000 (16:59 +0200)]
avy.el (avy-dowindows): Ignore pdf-view-mode

Fixes #57

9 years agoavy.el (avy-goto-char-in-line): Quote char
Oleh Krehel [Tue, 2 Jun 2015 14:57:50 +0000 (16:57 +0200)]
avy.el (avy-goto-char-in-line): Quote char

Fixes #56

9 years agoFix jumping to other frames
Oleh Krehel [Sat, 30 May 2015 08:11:04 +0000 (10:11 +0200)]
Fix jumping to other frames

* avy.el (avy--goto): Select the window frame if needed.

Fixes #54

9 years agoavy.el (avy--overlay-at-full): Improve
Oleh Krehel [Tue, 26 May 2015 14:59:01 +0000 (16:59 +0200)]
avy.el (avy--overlay-at-full): Improve

Re #51

9 years agoFixup byte-compile warnings
Oleh Krehel [Tue, 26 May 2015 14:05:05 +0000 (16:05 +0200)]
Fixup byte-compile warnings

* avy.el (avy-tree): Move.

9 years agoFor De Bruin, don't build a tree
Oleh Krehel [Tue, 26 May 2015 13:40:21 +0000 (15:40 +0200)]
For De Bruin, don't build a tree

* avy.el (avy--group-by): Remove.
(avy--path-alist-to-tree): Remove.
(avy-tree-de-bruijn): Remove.
(avy-read-de-bruijn): New defun.
(avy--process): Update.

Instead of building a tree (from a flat sequence) and traversing it,
just use the flat sequence.  This has the advantage of candidates being
in proper buffer-sequential order.

Re #51
Re #5

9 years agoAdd 'de-bruijn option for avy-style
Tassilo Horn [Tue, 26 May 2015 11:17:37 +0000 (13:17 +0200)]
Add 'de-bruijn option for avy-style

* avy.el (avy-style): New choice option.
(avy--de-bruijn): New defun.
(avy--path-alist-1): New defun.
(avy--group-by): New defun.
(avy--path-alist-to-tree): New defun.
(avy-tree-de-bruijn): New defun, semi-compatible with `avy-tree'.
(avy--process): Use `avy-tree-de-bruijn' when `avy-style' is 'de-bruijn.
(avy--style-fn): Use `avy--overlay-at-full' when `avy-style' is
'de-bruijn.

Fixes #51
Re #5

TODO: When tree produced by `avy-tree-de-bruijn' is traversed
depth-first, the results should be in-order of their appearance in the
window. Only in this case the overlay functions will work correctly,
since they need to be applied sequentially from window end to window
start.

9 years agoavy.el (avy-goto-char-in-line): New command
Oleh Krehel [Mon, 25 May 2015 08:12:17 +0000 (10:12 +0200)]
avy.el (avy-goto-char-in-line): New command

Fixes #49

9 years agoMakefile: "all" should depend on "compile"
Oleh Krehel [Tue, 19 May 2015 14:21:47 +0000 (16:21 +0200)]
Makefile: "all" should depend on "compile"

9 years agoBump version
Oleh Krehel [Tue, 19 May 2015 12:29:03 +0000 (14:29 +0200)]
Bump version

9 years agoavy.el (avy--overlay-at-full): Work-around 20607
Oleh Krehel [Mon, 18 May 2015 18:38:20 +0000 (20:38 +0200)]
avy.el (avy--overlay-at-full): Work-around 20607

* avy.el (avy--overlay-at-full): There's a problem when there are two
  overlays at the same point in the same buffer, but in different
  windows, *only if* they are of different length. Make them the same
  length to work-around this bug.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20607

Fixes #47

9 years agoavy.el (avy--overlay-at-full): Check overlay window
Oleh Krehel [Mon, 18 May 2015 17:14:03 +0000 (19:14 +0200)]
avy.el (avy--overlay-at-full): Check overlay window

* avy.el (avy--overlay-at-full): Update.

Re #47

9 years agoavy.el (avy-window-list): Fixup last commit
Oleh Krehel [Mon, 18 May 2015 14:31:46 +0000 (16:31 +0200)]
avy.el (avy-window-list): Fixup last commit

* avy.el (avy-window-list): Update.

Fixes #45

9 years agomake compile should run checkdoc
Oleh Krehel [Mon, 18 May 2015 08:14:00 +0000 (10:14 +0200)]
make compile should run checkdoc

* targets/avy-init.el: Call `checkdoc' for "avy.el". This will actually
  work only in trunk Emacs.

9 years agoAllow for all operations to work across frames
Oleh Krehel [Mon, 18 May 2015 06:57:12 +0000 (08:57 +0200)]
Allow for all operations to work across frames

* avy.el (avy-all-windows): Change the custom type to choice: this
  window/this frame/all frames.
(avy-window-list): New defun.
(avy-dowindows): Use `avy-window-list'.
(avy--process): Use `avy-window-list'.

9 years agoFix the at-full style interaction with tabs
Oleh Krehel [Sun, 17 May 2015 11:44:17 +0000 (13:44 +0200)]
Fix the at-full style interaction with tabs

* avy.el (avy--overlay-at-full): When at tab, visualize it using
  `tab-width' spaces. Assume the path is shorter than `tab-width'.

Fixes #43

9 years agoREADME.md: Add a link to the wiki for defcustoms
Oleh Krehel [Sun, 17 May 2015 11:31:16 +0000 (13:31 +0200)]
README.md: Add a link to the wiki for defcustoms

9 years agoFixup the last commit and add contribution guidelines
Oleh Krehel [Sun, 17 May 2015 10:36:37 +0000 (12:36 +0200)]
Fixup the last commit and add contribution guidelines

* avy.el (avy-goto-char):
(avy-goto-char-2):
(avy-goto-word-1):
(avy-goto-subword-1):
(avy-goto-word-or-subword-1): Update argument list and docstring.

* README.md: Add a "Contributing" section.

Re #44

9 years agoExpose chars to be read as args.
Yang Zhao [Sun, 17 May 2015 04:53:09 +0000 (21:53 -0700)]
Expose chars to be read as args.

9 years agoCustomize how `avy-lead-face-0' is applied
Oleh Krehel [Sat, 16 May 2015 17:31:26 +0000 (19:31 +0200)]
Customize how `avy-lead-face-0' is applied

* avy.el (avy-highlight-first): New defcustom. When non-nil, use
  `avy-lead-face-0' even on terminal chars.
(avy--overlay-pre): Update.
(avy--overlay-at-full): Update.
(avy--overlay-post): Update.

Fixes #42

9 years agoavy.el (avy-move-line): Use ARG lines
Oleh Krehel [Sat, 16 May 2015 15:59:35 +0000 (17:59 +0200)]
avy.el (avy-move-line): Use ARG lines

9 years agoRemove empty line after original one being moved
Ting-Yu Lin [Thu, 14 May 2015 10:10:17 +0000 (18:10 +0800)]
Remove empty line after original one being moved

Fixed #40.

9 years agoAllow all kinds of styles for `avy-goto-line'
Oleh Krehel [Wed, 13 May 2015 22:05:28 +0000 (00:05 +0200)]
Allow all kinds of styles for `avy-goto-line'

* avy.el (avy--line): Use the custom style. Use line end postion for
  'post style.

Fixes abo-abo/ace-link#17

Any of the following do something different now:

(setq avy-styles-alist
      '((avy-goto-line . post)))
(setq avy-styles-alist
      '((avy-goto-line . at)))
(setq avy-styles-alist
      '((avy-goto-line . at-full)))
(setq avy-styles-alist
      '((avy-goto-line . pre)))

9 years agoavy.el (avy--overlay-at): Use `avy--overlay-offset'
Oleh Krehel [Wed, 13 May 2015 21:31:34 +0000 (23:31 +0200)]
avy.el (avy--overlay-at): Use `avy--overlay-offset'

Fixes abo-abo/lispy#70

9 years agoAdd `avy-lead-face-1' for dimmed matched chars
Oleh Krehel [Tue, 12 May 2015 10:36:18 +0000 (12:36 +0200)]
Add `avy-lead-face-1' for dimmed matched chars

* avy.el (avy-lead-face-0): Update doc.
(avy-lead-face-1): New face.
(avy-current-path): New defvar.
(avy-read): Store the current matched chars in `avy-current-path'.
(avy--overlay-pre):
(avy--overlay-post): Extend the string with the matched part. This
prevents shifting during selection, and looks nice too.

Fixes #38

9 years agoUse `avy-lead-face-0' for 'pre and 'post
Oleh Krehel [Tue, 12 May 2015 10:01:59 +0000 (12:01 +0200)]
Use `avy-lead-face-0' for 'pre and 'post

* avy.el (avy--overlay-pre): Update.
(avy--overlay-post): Update.

Re #38

9 years agoWith 'at-full style, use full len to check for overlap
Oleh Krehel [Tue, 12 May 2015 08:52:39 +0000 (10:52 +0200)]
With 'at-full style, use full len to check for overlap

avy.el (avy--overlay-at-full): Update.

9 years agoStop 'at-full from shifting text
Oleh Krehel [Mon, 11 May 2015 19:26:23 +0000 (21:26 +0200)]
Stop 'at-full from shifting text

* avy.el (avy-read): Call DISPLAY-FN in buffer's reverse order.
(avy--overlay-at-full): When there's an avy overlay after point, shorten
the current overlay to one letter.

Re #5

9 years agoUpdate group name
Oleh Krehel [Mon, 11 May 2015 17:48:56 +0000 (19:48 +0200)]
Update group name

9 years agoavy.el (avy--regex-candidates): Add optional group arg
Oleh Krehel [Mon, 11 May 2015 12:39:19 +0000 (14:39 +0200)]
avy.el (avy--regex-candidates): Add optional group arg

9 years agoAdd debug declarations
Oleh Krehel [Mon, 11 May 2015 12:39:01 +0000 (14:39 +0200)]
Add debug declarations

9 years agotargets/avy-init.el: Update
Oleh Krehel [Mon, 11 May 2015 12:38:46 +0000 (14:38 +0200)]
targets/avy-init.el: Update

9 years agoUpdate avy-jump mentions in the README
Bozhidar Batsov [Mon, 11 May 2015 08:41:22 +0000 (11:41 +0300)]
Update avy-jump mentions in the README

9 years agoMerge avy-jump.el into avy.el
Oleh Krehel [Mon, 11 May 2015 08:33:16 +0000 (10:33 +0200)]
Merge avy-jump.el into avy.el

Fixes #31

9 years agoavy-jump.el (avy-goto-word-or-subword-1): New command
Oleh Krehel [Mon, 11 May 2015 08:26:09 +0000 (10:26 +0200)]
avy-jump.el (avy-goto-word-or-subword-1): New command

Fixes #33

9 years agoAdd a new face for 'at-full style
Oleh Krehel [Mon, 11 May 2015 07:45:49 +0000 (09:45 +0200)]
Add a new face for 'at-full style

* avy-jump.el (avy-lead-face-0): New face.
(avy--overlay-at-full): If the path is longer than 1, propertize the
first char with `avy-lead-face-0'.

Re #5

9 years agotargets/avy-init.el: Move
Oleh Krehel [Mon, 11 May 2015 07:39:44 +0000 (09:39 +0200)]
targets/avy-init.el: Move

* Makefile: Update.

Fixes #32
Fixes milkypostman/melpa/#2758

9 years agoavy-jump.el (avy-case-fold-search): New defcustom
Oleh Krehel [Sun, 10 May 2015 11:29:19 +0000 (13:29 +0200)]
avy-jump.el (avy-case-fold-search): New defcustom

* avy-jump.el (avy--regex-candidates): Use `avy-case-fold-search'.
When it is t, the case will be ignored while jumping.

Fixes abo-abo/ace-window#34

9 years agoREADME.md: mention avy-goto-line -> goto-line
Oleh Krehel [Sat, 9 May 2015 18:01:57 +0000 (20:01 +0200)]
README.md: mention avy-goto-line -> goto-line

9 years agoAllow to break from `avy-goto-line' into `goto-line'
Oleh Krehel [Sat, 9 May 2015 16:14:50 +0000 (18:14 +0200)]
Allow to break from `avy-goto-line' into `goto-line'

* avy.el (avy-handler-default): New defun.
(avy-handler-function): New variable. Bind this temporarily to catch bad chars.
(avy-read): Forward to `avy-handler-default'.

* avy-jump.el (avy--goto): Consider the case of 'exit symbol being
  returned.
(avy-goto-line): Bind `avy-handler-function' to catch digits and call
`goto-line' in that case.

Fixes #29

9 years agoFix jumping to newlines with at-full style
Oleh Krehel [Sat, 9 May 2015 14:44:58 +0000 (16:44 +0200)]
Fix jumping to newlines with at-full style

* avy-jump.el (avy--overlay-at-full): Update.

Re #5

9 years agoavy-jump.el (avy-goto-subword-0): Update candidate order
Oleh Krehel [Sat, 9 May 2015 12:43:52 +0000 (14:43 +0200)]
avy-jump.el (avy-goto-subword-0): Update candidate order

Re #27

9 years agoavy-jump.el (avy-dowindows): Simplify
Oleh Krehel [Sat, 9 May 2015 12:23:23 +0000 (14:23 +0200)]
avy-jump.el (avy-dowindows): Simplify

Re #27

9 years agoavy-jump.el (avy-goto-subword-0): Add nreverse
Oleh Krehel [Sat, 9 May 2015 12:21:59 +0000 (14:21 +0200)]
avy-jump.el (avy-goto-subword-0): Add nreverse

Re #27

9 years agoBump version
Oleh Krehel [Sat, 9 May 2015 11:47:07 +0000 (13:47 +0200)]
Bump version

9 years agoUpdate and document the style customization
Oleh Krehel [Sat, 9 May 2015 11:38:05 +0000 (13:38 +0200)]
Update and document the style customization

* avy-jump.el (avy-style): New defcustom. Replaces `avy-goto-char-style'
  and `avy-goto-word-style'.
(avy-styles-alist): New defcustom. Allows to customize the style for
each command separately.
(avy--with-avy-keys): Update.
(avy-goto-char-style): Obsolete.
(avy-goto-word-style): Obsolete.

* README.md: Document style customization.

Fixes #28

9 years agoAllow to display the full path using `at-full' style
Oleh Krehel [Sat, 9 May 2015 11:03:24 +0000 (13:03 +0200)]
Allow to display the full path using `at-full' style

* avy-jump.el (avy--overlay-at-full): New defun.
(avy--style-fn): Update.
(avy-goto-char-style): Update.
(avy-goto-word-style): Update.

Fixes #5

9 years agoFix avy-background some more
Oleh Krehel [Sat, 9 May 2015 11:02:20 +0000 (13:02 +0200)]
Fix avy-background some more

* avy-jump.el (avy--make-backgrounds): Make the overlay local to the
  current window. Avoids the problem when the same buffer is displayed
  twice.

9 years agoFix avy-background for multiple windows
Oleh Krehel [Sat, 9 May 2015 10:52:38 +0000 (12:52 +0200)]
Fix avy-background for multiple windows

* avy-jump.el (avy--process): Update.

Fixes #26

9 years agoRun checkdoc
Oleh Krehel [Sat, 9 May 2015 10:44:41 +0000 (12:44 +0200)]
Run checkdoc

* avy-jump.el (cl-lib): Is already required in avy.
(avy-keys-alist): Fix doc.
(avy--with-avy-keys): Add doc.
(avy-word-punc-regexp): Fix doc.
(avy--process): Fix doc.
(avy--overlay-at): Fix doc.
(avy--overlay-post): Fix doc.
(avy--line): Fix doc.
(avy-goto-line): Fix doc.

Fixes #25

9 years agoFix eval-after-load isearch
Oleh Krehel [Sat, 9 May 2015 06:33:16 +0000 (08:33 +0200)]
Fix eval-after-load isearch

* avy-jump.el (avy-setup-default): Update.

Fixes #21

9 years agoAdd a dependency to cl-lib for Emacs < 24.3
Bozhidar Batsov [Sat, 9 May 2015 05:29:06 +0000 (08:29 +0300)]
Add a dependency to cl-lib for Emacs < 24.3

cl-lib was introduced in Emacs 24.3. On older Emacs versions we have to
install it from GNU ELPA.

9 years agoAlways default to avy-keys but allow for per-command overrides
Tassilo Horn [Fri, 8 May 2015 20:56:33 +0000 (22:56 +0200)]
Always default to avy-keys but allow for per-command overrides

Using the new `avy-keys-alist` one can override the default `avy-keys`
on a per-command basis.  That's much better than hard-coding ?a-?z for
some commands and using the defaults for some others.

Fixes #20

9 years agoMove the package metadata to avy.el
Oleh Krehel [Fri, 8 May 2015 20:29:38 +0000 (22:29 +0200)]
Move the package metadata to avy.el

Depend on Emacs 24.1 as well.

9 years agoUse cl-lib instead of cl-macs
Bozhidar Batsov [Fri, 8 May 2015 20:10:44 +0000 (23:10 +0300)]
Use cl-lib instead of cl-macs

Fixes #19

9 years agoAdd more customization types
Sean Allred [Fri, 8 May 2015 18:55:38 +0000 (13:55 -0500)]
Add more customization types

Fixes #18

9 years agoAdd customization type to `avy-keys'
Sean Allred [Fri, 8 May 2015 18:50:47 +0000 (13:50 -0500)]
Add customization type to `avy-keys'

9 years agoUse `avy-keys' for `avy-goto-subword-1'
Oleh Krehel [Fri, 8 May 2015 17:40:20 +0000 (19:40 +0200)]
Use `avy-keys' for `avy-goto-subword-1'

* avy-jump.el (avy-goto-subword-0): Update.

Fixes #15

9 years agoWhen selecting from many windows, prioritize the current
Oleh Krehel [Fri, 8 May 2015 17:21:48 +0000 (19:21 +0200)]
When selecting from many windows, prioritize the current

* avy-jump.el (avy-dowindows): Update.

Fixes #14

9 years agoAdd avy-goto-char-timer
Oleh Krehel [Fri, 8 May 2015 16:19:40 +0000 (18:19 +0200)]
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

9 years agoavy-jump.el (avy--regex-candidates): Update arglist
Oleh Krehel [Fri, 8 May 2015 16:08:36 +0000 (18:08 +0200)]
avy-jump.el (avy--regex-candidates): Update arglist

* avy-jump.el (avy--regex-candidates): Remove the optional window arg.

9 years agoavy-jump.el (avy-setup-default): Setup some bindings
Oleh Krehel [Fri, 8 May 2015 13:20:08 +0000 (15:20 +0200)]
avy-jump.el (avy-setup-default): Setup some bindings

* README.md: Add a description.

Fixes #10

9 years agoavy.el: Update commentary
Oleh Krehel [Fri, 8 May 2015 09:51:07 +0000 (11:51 +0200)]
avy.el: Update commentary

9 years agoAdd avy-goto-subword-1
Oleh Krehel [Fri, 8 May 2015 09:36:10 +0000 (11:36 +0200)]
Add avy-goto-subword-1

Fixes #8

9 years agoavy-jump.el (avy-goto-word-1): Fix for "."
Oleh Krehel [Thu, 7 May 2015 13:36:35 +0000 (15:36 +0200)]
avy-jump.el (avy-goto-word-1): Fix for "."

Fixes #7

9 years agoSpecial-case char RET to allow for jumping to end-of-lines.
Tassilo Horn [Thu, 7 May 2015 12:37:31 +0000 (14:37 +0200)]
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.)

9 years agoAbstract windows and rely on subword
Oleh Krehel [Thu, 7 May 2015 11:28:27 +0000 (13:28 +0200)]
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

9 years agoREADME.md: Add command descriptions
Oleh Krehel [Thu, 7 May 2015 11:02:44 +0000 (13:02 +0200)]
README.md: Add command descriptions

9 years agoavy-jump.el (avy--line): Avoid image-mode and doc-view-mode
Oleh Krehel [Thu, 7 May 2015 11:02:20 +0000 (13:02 +0200)]
avy-jump.el (avy--line): Avoid image-mode and doc-view-mode

Fixes #1

9 years agoCustomize the leading char style for chars and words
Oleh Krehel [Thu, 7 May 2015 10:42:58 +0000 (12:42 +0200)]
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

9 years agoREADME.md: add
Oleh Krehel [Thu, 7 May 2015 10:10:51 +0000 (12:10 +0200)]
README.md: add

Fixes #2

9 years agoFix avy-goto-subword-0
Tassilo Horn [Thu, 7 May 2015 08:28:24 +0000 (10:28 +0200)]
Fix avy-goto-subword-0

avy-goto-subword-0's regexp requires that case-fold-search is nil, so
let-bind it.

9 years agoRegexp-quote strings of avy-goto-char* functions.
Tassilo Horn [Thu, 7 May 2015 08:22:42 +0000 (10:22 +0200)]
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.

9 years agoMove obsoletes to one place
Oleh Krehel [Wed, 6 May 2015 06:43:45 +0000 (08:43 +0200)]
Move obsoletes to one place

9 years agoAvoid image-mode and doc-view-mode
Oleh Krehel [Tue, 5 May 2015 15:39:41 +0000 (17:39 +0200)]
Avoid image-mode and doc-view-mode

* avy-jump.el (avy--regex-candidates): Update.

Re #1

9 years agoMove from "avi-" to "avy-", leave old stuff obsolete
Oleh Krehel [Tue, 5 May 2015 14:53:37 +0000 (16:53 +0200)]
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.

9 years agoInitial import
Oleh Krehel [Tue, 5 May 2015 14:29:21 +0000 (16:29 +0200)]
Initial import