hlissner / evil-snipe

2-char searching ala vim-sneak & vim-seek, for evil-mode
MIT License
336 stars 25 forks source link

Wrap forward/backward-key within evil-snipe--transient-map #71

Closed leungbk closed 4 years ago

leungbk commented 4 years ago

This allows (evil-snipe-def 1 'exclusive "<down>" "<up>").

hlissner commented 4 years ago

Hi! Thanks for the PR but I cannot accept it, as it is an unnecessary change to the signature of the macro; the expected pattern is to use kbd yourself or the vectored events directly:

(evil-snipe-def 1 'exclusive (kbd "<down>") (kbd "<up>"))

;; or

(evil-snipe-def 1 'exclusive [down] [up])  ; (kbd "<down>") evaluates to [down], etc.