Questions tagged [avy]
Avy is a package to allow you to move point to any position in visible text in Emacs and select text quickly. It is available from MELPA (https://melpa.org/#/avy).
20
questions
0
votes
1
answer
19
views
Avy snipe-repeated command execution. Replacement only of the current candidate or jump further
Good day, I am using doom-emacs on Mac OS. I want to implement a new feature, using avy commands, but without the letter selection, but an immediate jump. Much like evil snipe command.
Instead of ...
0
votes
0
answers
19
views
Yank to char using avy including the selected character
I want to be able to yank the text to char including the character using avy. For this I wrote the following command:
(defun my/yank-to-char-avy ()
"Delete region from point to a character.&...
0
votes
0
answers
43
views
Avy keybindings
I would like to define keybindings for avy - more precisely, let's say I call one of the avy-goto-... functions, now these all expect a character. I would like to be able to have a keybinding (e.g M-' ...
0
votes
1
answer
45
views
Precomposing all commands in a keymap with a function using a variable in another command
I'm working on a plugin that allows avy to act from a distance and immediately return to its starting position, which mostly works. However, there is a problem in that an action, such as the deletion ...
0
votes
1
answer
61
views
How to implement avy comment region function?
I am using doom emacs on Mac OS. I would like to have an avy comment region and line command, where just as with for example avy-kill-region the region is selected. I've come up with the following ...
0
votes
1
answer
35
views
Advanced paste region with avy and expand region
Following the
Use avy to select distant word or line and paste at point
thread I want the following action - select a letter as in the thread, when the letters for avy selection arrive press a number ...
0
votes
0
answers
40
views
Terminate custom avy repeated command
I am using a repeated command in doom-emacs on Mac OS which I borrowed from some other thread here:
(defun avy-delete-line-repeat (count &optional all-frames)
"Wrapper around `other-window' ...
0
votes
0
answers
83
views
snipe-avy - combine evil-snipe with avy, highlighting of the selected chars to jump to avy-style
This is a bit advanced ask, but maybe it's possible. Assuming there are multiple same characters on the same line selected by evil-snipe it would be awesome if one could navigate to other characters ...
0
votes
1
answer
57
views
Avy copy/delete partial sentence of a certain line
I have a question about how to implement a command specific to avy.
A template of a command which I would like to generalize is
avy-kill-ring-save-whole-line.
I want to be able to copy/delete from ...
0
votes
1
answer
83
views
Hide cursor (and marks) in all windows while using avy or ace-window
I find occasionally hard to read the labels from avy or ace-window when they overlap with the cursor (I have cursor-on-non-selected-window set to t). Same issue with ace-window (even more relevant ...
2
votes
0
answers
42
views
Invoking a function from within avy
I have bound avy-goto-char-timer to C-j globally. But I want the key chord C-j C-s to invoke isearch-forward-symbol-at-point. Is that possible ?
0
votes
2
answers
230
views
Create avy zap to char and up to char function
Good day,
I like the zap to char and zap up to char functions from evil. Since sometimes you would like to delete a prolonged sentence, I use evil-delete with selecting the char by evil-avy-goto-char-...
4
votes
1
answer
174
views
How do I jump to the previous/next modification (relative to the git HEAD) in the current file?
How do I jump to the previous/next modification (relative to the git HEAD) in the current file?
Ideally, I like sth like swiper that lets me choose to easily jump between modifications.
3
votes
2
answers
372
views
Confine avy search to a single line/paragraph
Is there a good way to do this? Much of the time I find myself using avy-mode I only want to jump somewhere within the current paragraph or line. With stock avy, this involves entering numerous keys ...
1
vote
1
answer
165
views
Is it possible to use avy to jump to known positions in a buffer?
I want to use avy to jump to fields in a bibtex entry. I have only found a way to use a regex to specify jump places in avy so far. I don't want to just build a regex to match the fields in an entry, ...
0
votes
0
answers
233
views
Why is avy-goto-line so slow?
If I open a file with, say, 2 lines, then when I call avy-goto-line emacs shows me in the beginning of each line the keybinding to move the cursor over there.
But try it in a bit longer file (I use a ...
1
vote
1
answer
263
views
Get thing-at-point to include periods
I'm using avy to select and insert symbols on screen with the help of thing-at-point. Is there an obvious way to get this to include periods? At the moment if I select self.blah I get just self (or ...
10
votes
3
answers
1k
views
Use avy to select distant word or line and paste at point
Is there a way to use avy or a similar in-buffer selection tool to quickly select a word or line to paste at the current point?
For the following buffer an example workflow for proposed functionality ...
2
votes
1
answer
176
views
Avy is not labelling every character I want to jump to
I can't jump to every instance of a character, for instance consider this line :
if( c == '\n' || c == ' ' || c == '\n') continue;
Pressing avy-shortcut SPACE to label all the white spaces will ...
3
votes
1
answer
423
views
Avy - Moving Between Terminal Frames
I've only just recently started using avy to navigate inside my buffers and it seems to work nicely.
As for my question however, with avy-all-windows set to all-frames I am able to navigate between ...