Comments (4)
Did you customize avy-keys
? 49 aka ?1
must not be in avy-keys
.
from avy.
avy-keys
's value is (97 115 100 102 106 107 108 59 32)
so, no.
from avy.
Strange. What's your Emacs version?
The code looks like this:
(let ((avy-handler-function
(lambda (char)
(if (or (< char ?0)
(> char ?9))
(avy-handler-default char)
(let ((line (read-from-minibuffer
"Goto line: " (string char))))
(when line
(goto-char (point-min))
(forward-line (1- (string-to-number line)))
(throw 'done 'exit)))))))
(avy--goto (avy--line arg)))
Maybe you could extract it like so:
(defun avy--handler-line (char)
(if (or (< char ?0)
(> char ?9))
(avy-handler-default char)
(let ((line (read-from-minibuffer
"Goto line: " (string char))))
(when line
(goto-char (point-min))
(forward-line (1- (string-to-number line)))
(throw 'done 'exit)))))
(defun avy-goto-line (&optional arg)
"Jump to a line start in current buffer.
The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive "P")
(avy--with-avy-keys avy-goto-line
(let ((avy-handler-function #'avy--handler-line))
(avy--goto (avy--line arg)))))
Then edebug avy--handler-line
to see what's happening.
from avy.
Without changing anything it now works fine. I will reopen if I can reproduce.
from avy.
Related Issues (20)
- avy-goto-char-timer: indicate somehow when match is unique HOT 1
- Feature request: a counterpart to 'avy-isearch that works with the "ctrlf" package HOT 1
- temporarily use all windows HOT 1
- Have an 'avy-org-refile-as-sibling' alternative to 'avy-org-refile-as-child'
- de-Bruijn candidate selection may fail when `avy-single-candidate-jump` is `nil` HOT 1
- How could I make a three char version of a command such as "avy-goto-char-2-below"?
- avy-goto-end-of-line does not respect the avy-styles-alist HOT 1
- Support always on "hats" style jumping HOT 3
- Reverse the order of key-labels for avy-goto-*-above HOT 2
- Avy's upstream and its version in elpa.git diverged
- Dimming buttons and headers HOT 1
- First char not highlighted
- Is there a workaround for shifted characters in variable-pitch-mode? HOT 1
- avy-copy/move-line/region expects a keystroke on emacs 28 HOT 2
- add-text-properties can be called on empty string
- Contribution Guidance Request: avy-goto-char-timer populate lead key face automatically
- How do I "activate" the avy-org-* commands?
- avy-dispatch-alist to invoke "isearch-forward-symbol-at-point" on C-s HOT 2
- What does de-bruijn style do? HOT 1
- avy-goto-char-2 display overlays after first character like Neovim's leap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avy.