[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 791c16c 02/24: avy.el (avy-goto-char-in-line): New command
From: |
Oleh Krehel |
Subject: |
[elpa] master 791c16c 02/24: avy.el (avy-goto-char-in-line): New command |
Date: |
Thu, 25 Jun 2015 10:17:46 +0000 |
branch: master
commit 791c16c6acfb82b2916a138e07c2fb3a47e64423
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-goto-char-in-line): New command
Fixes #49
---
avy.el | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/avy.el b/avy.el
index ce48da5..402f7ea 100644
--- a/avy.el
+++ b/avy.el
@@ -568,6 +568,25 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
avy-style)))
;;;###autoload
+(defun avy-goto-char-in-line (char &optional arg)
+ "Jump to the currently visible CHAR in the current line.
+The window scope is determined by `avy-all-windows' (ARG negates it)."
+ (interactive (list (read-char "char: ")
+ current-prefix-arg))
+ (let ((avy-all-windows
+ (if arg
+ (not avy-all-windows)
+ avy-all-windows)))
+ (avy--with-avy-keys avy-goto-char
+ (avy--goto
+ (avy--process
+ (save-restriction
+ (narrow-to-region (line-beginning-position)
+ (line-end-position))
+ (avy--regex-candidates (string char)))
+ (avy--style-fn avy-style))))))
+
+;;;###autoload
(defun avy-goto-char-2 (char1 char2 &optional arg)
"Jump to the currently visible CHAR1 followed by CHAR2.
The window scope is determined by `avy-all-windows' (ARG negates it)."
- [elpa] master updated (98073fe -> f727b53), Oleh Krehel, 2015/06/25
- [elpa] master fc93fe6 10/24: avy.el (avy-ignored-modes): New defcustom., Oleh Krehel, 2015/06/25
- [elpa] master 1350ab3 08/24: avy.el (avy-goto-char-in-line): Quote char, Oleh Krehel, 2015/06/25
- [elpa] master 27b3da3 11/24: avy.el (avy-goto-char-in-line): Fix to this window, Oleh Krehel, 2015/06/25
- [elpa] master 7b0ba80 19/24: avy.el (avy-style): Switch the default from 'pre to 'at-full, Oleh Krehel, 2015/06/25
- [elpa] master 8d38a89 23/24: avy.el (avy-goto-char-timer): Obey avy-styles-alist, Oleh Krehel, 2015/06/25
- [elpa] master 9ddde6d 06/24: avy.el (avy--overlay-at-full): Improve, Oleh Krehel, 2015/06/25
- [elpa] master 44d76b9 22/24: Bump version to 0.3.0, Oleh Krehel, 2015/06/25
- [elpa] master 791c16c 02/24: avy.el (avy-goto-char-in-line): New command,
Oleh Krehel <=
- [elpa] master 6dfa445 12/24: README.md: Mention a custom-command tutorial, Oleh Krehel, 2015/06/25
- [elpa] master 7376a0c 18/24: avy.el (avy--overlay-at-full): Fixup (for overlays-in), Oleh Krehel, 2015/06/25
- [elpa] master 15c7f9f 17/24: targets/avy-init.el: Use the new checkdoc-file, Oleh Krehel, 2015/06/25
- [elpa] master 035d663 14/24: Add `avy-translate-char-function' to translate user input key, Oleh Krehel, 2015/06/25
- [elpa] master 27b98bb 03/24: Add 'de-bruijn option for avy-style, Oleh Krehel, 2015/06/25
- [elpa] master a7c92d8 21/24: Updated screenshot image for ivy-goto-char., Oleh Krehel, 2015/06/25
- [elpa] master f727b53 24/24: Merge commit '8d38a898f23b3105c5d098f0cfb6c3383547e394' from avy, Oleh Krehel, 2015/06/25
- [elpa] master 02bf35b 13/24: Modify `at-full' and `de-bruijn' overlays to color depth, Oleh Krehel, 2015/06/25
- [elpa] master 236293a 15/24: avy.el (avy-isearch): Allow different styles, Oleh Krehel, 2015/06/25
- [elpa] master 054390f 16/24: avy.el (avy-translate-char-function): Fixup doc, Oleh Krehel, 2015/06/25