[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7b44c1f 01/17: avy-jump.el (avi-goto-subword-0): New comma
From: |
Oleh Krehel |
Subject: |
[elpa] master 7b44c1f 01/17: avy-jump.el (avi-goto-subword-0): New command |
Date: |
Fri, 08 May 2015 13:43:38 +0000 |
branch: master
commit 7b44c1f9e8b2cc3d95a8c1b74a12d6de7abb5fc6
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy-jump.el (avi-goto-subword-0): New command
---
avy-jump.el | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 50c7fce..bc174cd 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -203,6 +203,19 @@ LEAF is ((BEG . END) . WND)."
(avi--process candidates #'avi--overlay-pre))))
;;;###autoload
+(defun avi-goto-subword-0 ()
+ "Jump to a word or subword start in current window."
+ (interactive)
+ (let* ((avi-keys (number-sequence ?a ?z))
+ (candidates (avi--regex-candidates
+ "\\(\\b\\sw\\)\\|\\(?:[^A-Z]\\([A-Z]\\)\\)")))
+ (dolist (x candidates)
+ (when (> (- (cdar x) (caar x)) 1)
+ (cl-incf (caar x))))
+ (avi--goto
+ (avi--process candidates #'avi--overlay-pre))))
+
+;;;###autoload
(defun avi-goto-word-1 ()
"Jump to a word start in current window.
Read one char with which the word should start."
- [elpa] master updated (876d210 -> 269e61a), Oleh Krehel, 2015/05/08
- [elpa] master 7b44c1f 01/17: avy-jump.el (avi-goto-subword-0): New command,
Oleh Krehel <=
- [elpa] master b61131c 03/17: avy-jump.el (avi--overlay-pre): Handle plain numbers, Oleh Krehel, 2015/05/08
- [elpa] master ff4ce51 02/17: Don't collect candidates hidden by outlines, Oleh Krehel, 2015/05/08
- [elpa] master cd6583b 04/17: avy-jump.el (avi-all-windows): New defcustom, Oleh Krehel, 2015/05/08
- [elpa] master f92689a 06/17: avy-jump.el (avi--line): Fixup the issue with org outlines, Oleh Krehel, 2015/05/08
- [elpa] master 17b44a8 05/17: Update a few commands to jump in one or more windows, Oleh Krehel, 2015/05/08
- [elpa] master 3bbd404 08/17: Make sure avi-move-line and avi-copy-line behave consistently., Oleh Krehel, 2015/05/08
- [elpa] master ca92a08 09/17: avy-jump.el (avi-goto-word-1): Count some syms as words, Oleh Krehel, 2015/05/08
- [elpa] master dfe24f3 11/17: Add `avi-word-punc-regexp` defcustom, Oleh Krehel, 2015/05/08
- [elpa] master 6a0acfc 10/17: Add "make compile" and "make run", Oleh Krehel, 2015/05/08
- [elpa] master ee76efd 12/17: Fix rounding error, Oleh Krehel, 2015/05/08