Skip to main content

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).

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 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 ...
Alexander Praehauser's user avatar
0 votes
1 answer
43 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 ...
Rareform's user avatar
  • 219
0 votes
0 answers
21 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 ...
Rareform's user avatar
  • 219
0 votes
0 answers
35 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' ...
Rareform's user avatar
  • 219
0 votes
0 answers
43 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 ...
Rareform's user avatar
  • 219
0 votes
1 answer
51 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 ...
Rareform's user avatar
  • 219
0 votes
1 answer
57 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 ...
Wilder's user avatar
  • 95
1 vote
0 answers
35 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 ?
CD86's user avatar
  • 563
0 votes
2 answers
183 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-...
Rareform's user avatar
  • 219
4 votes
1 answer
135 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.
HappyFace's user avatar
  • 830
3 votes
2 answers
345 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 ...
Dodgie's user avatar
  • 472
1 vote
1 answer
152 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, ...
John Kitchin's user avatar
  • 11.9k
0 votes
0 answers
223 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 ...
Nisba's user avatar
  • 905
1 vote
1 answer
258 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 ...
Att Righ's user avatar
  • 775
9 votes
3 answers
984 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 ...
Joe's user avatar
  • 1,322
2 votes
1 answer
168 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 ...
ChiseledAbs's user avatar
3 votes
1 answer
392 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 ...
Xaldew's user avatar
  • 1,231