mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
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
This commit is contained in:
parent
dbd2d2018d
commit
53d457cfe4
3
avy.el
3
avy.el
@ -857,6 +857,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
||||
(avy--generic-jump regex arg avy-style))))
|
||||
|
||||
(declare-function subword-backward "subword")
|
||||
(defvar subword-bacward-regexp)
|
||||
|
||||
;;;###autoload
|
||||
(defun avy-goto-subword-0 (&optional arg predicate)
|
||||
@ -870,6 +871,8 @@ should return true."
|
||||
(require 'subword)
|
||||
(avy-with avy-goto-subword-0
|
||||
(let ((case-fold-search nil)
|
||||
(subword-backward-regexp
|
||||
"\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([!-/:@`~[:upper:]]+\\W*\\)\\|\\W\\w+\\)")
|
||||
candidates)
|
||||
(avy-dowindows arg
|
||||
(let ((ws (window-start))
|
||||
|
Loading…
x
Reference in New Issue
Block a user