Fork me on GitHub
#spacemacs
<
2020-10-11
>
zane00:10:50

Just discovered that avy has some additional capabilities hidden under a context menu that can be accessed with ? after selecting a target. Super useful.

practicalli-john11:10:49

Interesting. I used teleport and it moved the selected target to the location of the cursor (point), that was fun 🙂 I've created an issue to add this to the book, thanks https://github.com/practicalli/spacemacs-content/issues/277

zane06:10:26

Yeah, teleport was my favorite.

zane06:10:35

I added “change” in my personal config:

(use-package avy
    :after evil
    :config
    (defun avy-action-change (pt)
      "Kill sexp starting on PT and enter insert-mode."
      (avy-action-kill-move pt)
      (evil-insert 1))

    (setq avy-dispatch-alist
          '((?c . avy-action-change)
            (?x . avy-action-kill-move)
            (?X . avy-action-kill-stay)
            (?t . avy-action-teleport)
            (?m . avy-action-mark)
            (?n . avy-action-copy)
            (?y . avy-action-yank)
            (?i . avy-action-ispell))))

zane06:10:41

Glad you found it useful!