]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
8 years agoBump version
Oleh Krehel [Sat, 23 Jan 2016 13:32:53 +0000 (14:32 +0100)]
Bump version

8 years agoavy.el (avy--overlay): Fix interaction with goto-address-mode
Oleh Krehel [Wed, 20 Jan 2016 08:22:34 +0000 (09:22 +0100)]
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

8 years agocopy/move line to an initial window
denin [Wed, 6 Jan 2016 15:23:14 +0000 (18:23 +0300)]
copy/move line to an initial window

8 years agoDon't shorten selector string for visual-line-mode and bolp
Oleh Krehel [Wed, 6 Jan 2016 09:36:33 +0000 (10:36 +0100)]
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

8 years agoAdd case fold search to avy-goto-char-timer
OrionU [Wed, 6 Jan 2016 00:15:23 +0000 (18:15 -0600)]
Add case fold search to avy-goto-char-timer

Fixes #128

8 years agoavy.el (avy--regex-candidates): Modify case-fold-search condition
Oleh Krehel [Tue, 5 Jan 2016 10:45:04 +0000 (11:45 +0100)]
avy.el (avy--regex-candidates): Modify case-fold-search condition

Fixes #126

8 years agoavy.el (avy-copy-region): Keep same selectors for the second pass
Oleh Krehel [Tue, 5 Jan 2016 10:13:18 +0000 (11:13 +0100)]
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

8 years agoavy.el (avy--overlay): Fix overlays at point-max
Oleh Krehel [Tue, 22 Dec 2015 10:45:44 +0000 (11:45 +0100)]
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

8 years agoavy.el (avy--line): Don't modify avy-action
Oleh Krehel [Tue, 22 Dec 2015 08:16:34 +0000 (09:16 +0100)]
avy.el (avy--line): Don't modify avy-action

Fixes #124

8 years agoavy.el (avy-goto-line): fix for narrowed regions
Aleksey Fedotov [Fri, 18 Dec 2015 18:43:16 +0000 (21:43 +0300)]
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

8 years agoCustomize extra chars for avy-goto-subword-1
Oleh Krehel [Mon, 7 Dec 2015 13:54:16 +0000 (14:54 +0100)]
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

8 years agoavy.el (avy-copy-region): Fix for multi-buffer use
Oleh Krehel [Mon, 7 Dec 2015 10:01:52 +0000 (11:01 +0100)]
avy.el (avy-copy-region): Fix for multi-buffer use

Fixes #119

8 years agoavy.el (avy-all-windows-alt): New defcustom
Oleh Krehel [Mon, 7 Dec 2015 09:36:01 +0000 (10:36 +0100)]
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

8 years agoavy.el (avy-goto-line-above): Exclude the current line
Oleh Krehel [Thu, 3 Dec 2015 11:53:12 +0000 (12:53 +0100)]
avy.el (avy-goto-line-above): Exclude the current line

* avy.el (avy-goto-line-below): Exclude the current line

Re #106

8 years agoavy.el (avy-goto-line-above): Work in a single window
Oleh Krehel [Thu, 3 Dec 2015 09:20:23 +0000 (10:20 +0100)]
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

8 years agoavy.el (avy-copy-region): Obey avy-line-insert-style
Oleh Krehel [Wed, 2 Dec 2015 08:37:57 +0000 (09:37 +0100)]
avy.el (avy-copy-region): Obey avy-line-insert-style

Re #117

8 years agoavy.el (avy-line-insert-style): Customize avy-copy-line, avy-move-line
Oleh Krehel [Tue, 1 Dec 2015 13:37:09 +0000 (14:37 +0100)]
avy.el (avy-line-insert-style): Customize avy-copy-line, avy-move-line

* avy.el (avy-copy-line):
(avy-move-line): Update.

Fixes #117

8 years agoFix De Bruijn "No catch for tag" error
Dale Sedivec [Sun, 15 Nov 2015 16:32:46 +0000 (10:32 -0600)]
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.

8 years agoavy.el (avy--find-visible-regions): Add bounds safety
Oleh Krehel [Sat, 14 Nov 2015 10:17:53 +0000 (11:17 +0100)]
avy.el (avy--find-visible-regions): Add bounds safety

Re abo-abo/lispy#139

8 years agoavy.el (avy--read-candidates): Use avy-dowindows
Oleh Krehel [Wed, 11 Nov 2015 12:50:04 +0000 (13:50 +0100)]
avy.el (avy--read-candidates): Use avy-dowindows

Fixes #114

8 years agoImprove the faces for the last change
Oleh Krehel [Mon, 26 Oct 2015 07:59:27 +0000 (08:59 +0100)]
Improve the faces for the last change

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

8 years agoFix overlays at end-of-line with visual-line-mode
Oleh Krehel [Mon, 26 Oct 2015 07:56:10 +0000 (08:56 +0100)]
Fix overlays at end-of-line with visual-line-mode

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

Fixes #112

8 years agoFix 'at-full moving text for chars near end of visual line
Oleh Krehel [Sun, 25 Oct 2015 14:18:27 +0000 (15:18 +0100)]
Fix 'at-full moving text for chars near end of visual line

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

8 years agoFix 'at-full moving text when visual-line-mode is on
Oleh Krehel [Sun, 25 Oct 2015 14:08:13 +0000 (15:08 +0100)]
Fix 'at-full moving text when visual-line-mode is on

* avy.el (avy--overlay-at-full): Compute line-end-position according to
  `visual-line-mode'.
(avy--update-offset-and-str): Add one more arg.

Note that `visual-line-mode' is actually extremely slow. If you have a
lot of candidates, you'll get a perceptible slowdown.

8 years agoavy.el (avy--overlay-at-full): Use avy--overlay
Oleh Krehel [Sun, 25 Oct 2015 13:50:24 +0000 (14:50 +0100)]
avy.el (avy--overlay-at-full): Use avy--overlay

* avy.el (avy-styles-alist): Reset to nil.
(avy--overlay): Also set 'category to 'avy.
(avy--overlay-at-full): Use `avy--overlay'.

Fixes #110

8 years agoavy.el (avy--overlay): Take BEG END, instead of only BEG
Oleh Krehel [Sun, 25 Oct 2015 13:28:29 +0000 (14:28 +0100)]
avy.el (avy--overlay): Take BEG END, instead of only BEG

* avy.el (avy--overlay):
(avy--overlay-pre):
(avy--overlay-at):
(avy--overlay-post): Update.
Previously, END was implied to be (1+ BEG).

8 years agoavy.el (avy--update-offset-and-str): Split from avy--overlay-at-full
Oleh Krehel [Sun, 25 Oct 2015 13:17:34 +0000 (14:17 +0100)]
avy.el (avy--update-offset-and-str): Split from avy--overlay-at-full

* avy.el (avy--update-offset-and-str): New defun.
(avy--overlay-at-full): Update.

8 years agoMake avy--overlay-at use avy--overlay
Oleh Krehel [Sun, 25 Oct 2015 12:30:14 +0000 (13:30 +0100)]
Make avy--overlay-at use avy--overlay

* avy.el (avy--overlay): Add optional COMPOSE-FN argument.
(avy--overlay-at): Use `avy--overlay'.

8 years agoAdd avy-candidate-* helper functions
Oleh Krehel [Sun, 25 Oct 2015 12:20:41 +0000 (13:20 +0100)]
Add avy-candidate-* helper functions

* avy.el (avy-candidate-beg):
(avy-candidate-end):
(avy-candidate-wnd): New defun.
(avy--overlay-pre):
(avy--overlay-at):
(avy--overlay-at-full):
(avy--overlay-post): Update.

8 years agoavy.el (avy--old-str): New defun.
Oleh Krehel [Sun, 25 Oct 2015 11:40:40 +0000 (12:40 +0100)]
avy.el (avy--old-str): New defun.

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

8 years agoBeep when there are no matches
Tassilo Horn [Thu, 22 Oct 2015 13:25:13 +0000 (15:25 +0200)]
Beep when there are no matches

If avy--read-candidates doesn't find any candidates for the current
input, the user has surely made a typo.  In that case, beep at the user
to make him aware of that.

8 years agoFix for combined org-indent-mode and visual-line-mode
Oleh Krehel [Thu, 22 Oct 2015 08:57:21 +0000 (10:57 +0200)]
Fix for combined org-indent-mode and visual-line-mode

* avy.el (avy-styles-alist): Make `avy-goto-line' use the 'pre style.
(avy--overlay): Clone `line-prefix' and `wrap-prefix' text properties if
any. These are the properties that `org-indent-mode' uses.
(avy--line): Set `temporary-goal-column' to 0 - this affects
`line-move-visual'.

Fixes #110

8 years agoFix jumping to the last char of a folded Org outline
Oleh Krehel [Thu, 22 Oct 2015 08:26:26 +0000 (10:26 +0200)]
Fix jumping to the last char of a folded Org outline

avy.el (avy--read-candidates): For the last char in the
outline, (get-char-property (point) 'invisible) returns t, although it's
still visible.

Re #100

8 years agoavy.el (avy--read-candidates): Use avy-window-list
Oleh Krehel [Wed, 21 Oct 2015 18:37:55 +0000 (20:37 +0200)]
avy.el (avy--read-candidates): Use avy-window-list

Re #100

8 years agoavy.el (avy--read-candidates): Fix reverse order
Oleh Krehel [Wed, 21 Oct 2015 16:17:06 +0000 (18:17 +0200)]
avy.el (avy--read-candidates): Fix reverse order

Re #100

8 years agoOptimize avy-goto-char-timer
Oleh Krehel [Wed, 21 Oct 2015 11:37:12 +0000 (13:37 +0200)]
Optimize avy-goto-char-timer

Previously, the candidate list would be generated twice: by
`avy--read-string-timer' and by `avy--generic-jump'.

* avy.el (avy--read-string-timer): Rename to `avy--read-candidates'.
(avy--read-candidates): Return the list of candidates instead of a
string which the candidates match.
(avy-goto-char-timer): Update.

Re #100

8 years agoMake avy-goto-char-timer faster for org-mode
Oleh Krehel [Wed, 21 Oct 2015 10:38:14 +0000 (12:38 +0200)]
Make avy-goto-char-timer faster for org-mode

* avy.el (avy--read-string-timer): Use `avy--find-visible-regions'.
(avy-goto-char-timer): Make ARG work properly to negate
`avy-all-windows'.

Re #100

8 years agoavy.el (avy--process): Add window to candidates if not present
Oleh Krehel [Tue, 20 Oct 2015 08:35:37 +0000 (10:35 +0200)]
avy.el (avy--process): Add window to candidates if not present

`avy-read-de-bruijn' relies on the window being the cdr of each
candidate.

Fixes abo-abo/ace-link#22

8 years agoFix jumping to the last char of a folded Org outline
Oleh Krehel [Mon, 19 Oct 2015 14:11:40 +0000 (16:11 +0200)]
Fix jumping to the last char of a folded Org outline

avy.el (avy--regex-candidates): For the last char in the outline,
(get-char-property (point) 'invisible) returns t, although it's still
visible.

Re #108

8 years agoNew commands avy-goto-line-above and avy-goto-line-below
Oleh Krehel [Mon, 19 Oct 2015 09:57:47 +0000 (11:57 +0200)]
New commands avy-goto-line-above and avy-goto-line-below

* avy.el (avy--line): Add BEG, END optional args.
(avy-goto-line-above): New command.
(avy-goto-line-below): New command.

Fixes #106

8 years agoavy.el (avy--regex-candidates): Simplify
Oleh Krehel [Mon, 19 Oct 2015 08:08:26 +0000 (10:08 +0200)]
avy.el (avy--regex-candidates): Simplify

Remove the let-bound BEG and END that would shadow the function's args.

8 years agoSearch only in the visible region
Yasushi SHOJI [Sun, 18 Oct 2015 12:53:21 +0000 (21:53 +0900)]
Search only in the visible region

The current version of `avy--regex-candidates` first searches for the
given regex then skip the match if it's invisible.  This works fine with
less than a few thousand lines of buffer, however, it takes quit time if
your have tens of thousand lines hidden, say, in org file.

This patch reverse the strategy. Find all visible regions in given the
window first, then map the original search function to that list.  This
change reduced candidates search time from 10 or more seconds to instant
on my 100,000+ lines of org file.

It might be possible to have hundreds of visibility-interleaved regions
in a huge window on the 4K or 8K monitor in near the future, but this
reversed strategy should be fast enough for those system.

This fixes #108.
Fixes #109

8 years agoProperly highlight depending on avy-all-windows
Tassilo Horn [Tue, 6 Oct 2015 19:31:12 +0000 (21:31 +0200)]
Properly highlight depending on avy-all-windows

Before this change, the highlighting was only performed in the selected
window even if avy-all-windows was true.  Now it's consistent with the
value of that variable.

8 years agoavy.el (avy--overlay-at-full): Avoid negative length
Oleh Krehel [Tue, 22 Sep 2015 09:50:48 +0000 (11:50 +0200)]
avy.el (avy--overlay-at-full): Avoid negative length

Fixes #102

8 years agoModify avy--read-string-timer
momomo5717 [Sat, 19 Sep 2015 09:24:26 +0000 (18:24 +0900)]
Modify avy--read-string-timer

8 years agoDefine new face avy-goto-char-timer-face for the highlights
Tassilo Horn [Thu, 17 Sep 2015 06:22:52 +0000 (08:22 +0200)]
Define new face avy-goto-char-timer-face for the highlights

8 years agoImprove avy-goto-char-timer.
Tassilo Horn [Wed, 16 Sep 2015 16:29:37 +0000 (18:29 +0200)]
Improve avy-goto-char-timer.

1. Handle DEL in order to fix typos.
2. Handle RET in order to use the current input string immediately
   without waiting for another char for avy-timeout-seconds.
3. Highlight matches while reading chars.

8 years agoavy.el (avy-goto-line): Fix off-by-one
Oleh Krehel [Fri, 11 Sep 2015 10:24:02 +0000 (12:24 +0200)]
avy.el (avy-goto-line): Fix off-by-one

8 years agoFix indentation of defface
Oleh Krehel [Wed, 9 Sep 2015 15:27:10 +0000 (17:27 +0200)]
Fix indentation of defface

Re #97

8 years agoImprove avy-goto-char-timer so that it may read 1 or many chars
Tassilo Horn [Wed, 9 Sep 2015 14:51:17 +0000 (16:51 +0200)]
Improve avy-goto-char-timer so that it may read 1 or many chars

Now you can use avy-goto-char-timer and type as many chars as you want
given each char comes before avy-timeout-seconds (and the very first
char is mandatory, i.e., there is no timeout for the first one).

8 years agoAdd padding for wide-width character
Akira Tamamori [Fri, 4 Sep 2015 01:38:10 +0000 (10:38 +0900)]
Add padding for wide-width character

Add padding for wide-width character (ex. Japanese and Chinese).

8 years agoavy.el (avy--line): Obey avy-background
Oleh Krehel [Mon, 24 Aug 2015 09:11:26 +0000 (11:11 +0200)]
avy.el (avy--line): Obey avy-background

Fixes #94

8 years agoavy.el (avy-push-mark): Bring back push-mark
Oleh Krehel [Fri, 21 Aug 2015 18:46:03 +0000 (20:46 +0200)]
avy.el (avy-push-mark): Bring back push-mark

Fixes abo-abo/ace-window#41

8 years agoavy.el (avy--line): Don't error on end of buffer
Oleh Krehel [Fri, 21 Aug 2015 16:17:53 +0000 (18:17 +0200)]
avy.el (avy--line): Don't error on end of buffer

Re #91

8 years agoavy.el (avy-goto-subword-0): Don't offer invisible chars
Oleh Krehel [Fri, 21 Aug 2015 12:50:57 +0000 (14:50 +0200)]
avy.el (avy-goto-subword-0): Don't offer invisible chars

Fixes #90

8 years agoavy.el (avy--line): Work for visual-line-mode
Oleh Krehel [Fri, 21 Aug 2015 12:46:07 +0000 (14:46 +0200)]
avy.el (avy--line): Work for visual-line-mode

Use `point' instead of `line-beginning-position'.

Fixes #91

8 years agoavy.el (avy--generic-jump): Add beg and end optional args
Oleh Krehel [Fri, 21 Aug 2015 12:34:07 +0000 (14:34 +0200)]
avy.el (avy--generic-jump): Add beg and end optional args

* avy.el (avy-goto-char-in-line): Update.

Fixes #89

8 years agoavy.el (subword-backward-regexp): Fix declaration
Oleh Krehel [Fri, 21 Aug 2015 12:31:34 +0000 (14:31 +0200)]
avy.el (subword-backward-regexp): Fix declaration

8 years agoavy.el (avy-goto-line): Allow numeric prefix arg
Oleh Krehel [Fri, 21 Aug 2015 12:22:56 +0000 (14:22 +0200)]
avy.el (avy-goto-line): Allow numeric prefix arg

The old behavior remains for ARG 1 and 4. For all other ARG, simply go
to that line.

Fixes #86

8 years agoAdd misc punctuation to subword commands
Oleh Krehel [Fri, 21 Aug 2015 11:18:26 +0000 (13:18 +0200)]
Add misc punctuation to subword commands

* avy.el (avy-goto-subword-0): Temporarily bind
  `subword-backward-regexp' to allow chars like ! or @ to count as
  subword parts.

Fixes #93

8 years agoavy.el (avy-pop-mark): Handle multiple frames
Oleh Krehel [Fri, 7 Aug 2015 13:48:30 +0000 (15:48 +0200)]
avy.el (avy-pop-mark): Handle multiple frames

Re #88

8 years agoavy.el (avy-pop-mark): use own history for points and windows
Oleh Krehel [Fri, 7 Aug 2015 13:04:08 +0000 (15:04 +0200)]
avy.el (avy-pop-mark): use own history for points and windows

* avy.el (avy-action-goto): Don't save mark here, since the window was
  already changed.
(avy--process): Set mark here.
(avy-ring): New defvar.
(avy-push-mark): New defun.
(avy-pop-mark): Use `avy-ring' unless it's empty. Then use the mark ring.

Fixes #88
Re #69
Re #81

8 years agoConsiders letter case only if given Upcase letter
B Jacquet [Thu, 6 Aug 2015 14:13:57 +0000 (15:13 +0100)]
Considers letter case only if given Upcase letter

Fixes #87

8 years agoavy.el (avy-action-goto): Don't push mark when region is active
Oleh Krehel [Wed, 29 Jul 2015 15:59:42 +0000 (17:59 +0200)]
avy.el (avy-action-goto): Don't push mark when region is active

* avy.el (avy-action-goto): When the region is active, the user probably
  doesn't want to move the mark.

Fixes #84

8 years agoMake arg optional in avy-goto-subword-1
Dror Levin [Tue, 21 Jul 2015 12:42:21 +0000 (15:42 +0300)]
Make arg optional in avy-goto-subword-1

8 years agoAutload avy-goto-word-or-subword-1
Markus Hauck [Tue, 21 Jul 2015 07:11:01 +0000 (09:11 +0200)]
Autload avy-goto-word-or-subword-1

Fixes #82

8 years agoavy.el (avy-pop-mark): Add
Oleh Krehel [Tue, 21 Jul 2015 07:28:29 +0000 (09:28 +0200)]
avy.el (avy-pop-mark): Add

Fixes #81

8 years agoavy.el (avy-goto-line): Fixup goto-line clause
Oleh Krehel [Thu, 16 Jul 2015 20:03:25 +0000 (22:03 +0200)]
avy.el (avy-goto-line): Fixup goto-line clause

Fixes #79

8 years agoavy.el (avy-dispatch-alist): Upgrade to defcustom
Oleh Krehel [Thu, 16 Jul 2015 14:07:28 +0000 (16:07 +0200)]
avy.el (avy-dispatch-alist): Upgrade to defcustom

* avy.el (avy-handler-default): `avy-dispatch-alist' is actually an
  alist now.

8 years agoRename avy--with-avy-keys to avy-with
Oleh Krehel [Thu, 16 Jul 2015 14:06:21 +0000 (16:06 +0200)]
Rename avy--with-avy-keys to avy-with

* avy.el (avy-with): Macro renamed from `avy--with-avy-keys'.
(avy--with-avy-keys): Add obsolete alias.

8 years agoImprove docstrings
Oleh Krehel [Thu, 16 Jul 2015 14:05:33 +0000 (16:05 +0200)]
Improve docstrings

* avy.el (avy-keys): Update.
(avy-background-face): Update.

8 years agoAllow to switch action midway from goto to kill/mark/copy
Oleh Krehel [Thu, 16 Jul 2015 12:50:48 +0000 (14:50 +0200)]
Allow to switch action midway from goto to kill/mark/copy

* avy.el (avy-action): New defvar.
(avy-dispatch-alist): New defvar.
Customize this to add new dispatch functionality.
(avy-handler-default): Use `avy-dispatch-alist'.
(avy--with-avy-keys): Set `avy-action' to nil, which means
`avy-action-goto' will be called by default.
(avy--goto): Remove defun. Redirect it as an obsolete alias to identity.
(avy-action-goto): New defun.
(avy-action-mark): New defun.
(avy-action-copy): New defun.
(avy-action-kill): New defun.
(avy--process): Call `avy-action'. This function alone now does
what (avy--goto (avy--process ...)) used to do.
(avy--generic-jump): Remove `avy--goto'.
(avy-goto-char-in-line): Remove `avy--goto'.
(avy-isearch): Remove `avy--goto'.
(avy--line): Set `avy-action' to identity so that `avy--process' doesn't
move point.
(avy-goto-line): Replace `avy--goto' with `avy-action-goto'.
(avy-copy-line): `avy--line' now returns a point, not a cons.
(avy-move-line): `avy--line' now returns a point, not a cons.
(avy-copy-region): `avy--line' now returns a point, not a cons.

**Example of use.**

Suppose you have:
(global-set-key (kbd "M-g w") 'avy-goto-word-1)

To jump to a certain word (e.g. first one on screen): "M-g wa".
To copy the word instead of jumping to it:            "M-g wna".
To mark the word after jumping to it:                 "M-g wma".
To kill the word after jumping to it:                 "M-g wxa".

Re #78

8 years agoRemove the old obsolete aliases
Oleh Krehel [Thu, 16 Jul 2015 12:25:06 +0000 (14:25 +0200)]
Remove the old obsolete aliases

8 years agoAllow non-printing keys in avy-keys
Tassilo Horn [Tue, 14 Jul 2015 06:31:49 +0000 (08:31 +0200)]
Allow non-printing keys in avy-keys

Now you can set avy-keys also to the arrow keys and page up/down, e.g.,

  (setq avy-keys '(left right up down prior next))

and those will be displayed as ▲, ▼, ◀, ▶, △, ▽ in the overlays.  The
display is controlled by the variable `avy-key-to-char-alist'.

8 years agoRespect the current input method for target chars
Oleh Krehel [Tue, 7 Jul 2015 15:11:47 +0000 (17:11 +0200)]
Respect the current input method for target chars

* avy.el (avy-goto-char):
(avy-goto-char-in-line):
(avy-goto-char-2):
(avy-goto-word-1):
(avy-goto-subword-1):
(avy-goto-char-timer): Update.

Fixes #76

8 years agoavy.el (avy-goto-line): push mark for numeric line
Oleh Krehel [Wed, 1 Jul 2015 12:32:04 +0000 (14:32 +0200)]
avy.el (avy-goto-line): push mark for numeric line

Fixes #74

8 years agoAdd de-bruijn to the defcustom of avy-styles-alist
Junpeng Qiu [Thu, 25 Jun 2015 19:54:32 +0000 (15:54 -0400)]
Add de-bruijn to the defcustom of avy-styles-alist

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"