hlissner / evil-snipe

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

Repeat `t/T` with `f/F`? #18

Closed ghost closed 9 years ago

ghost commented 9 years ago

t/T are more clunky to reach than f/F so it would be nice to be able to repeat t/T with f/F.

This could be an option, but why not just make it the default? If you are using t<char> followed by f<char> you are doing something wrong, so making f/F a special key after t/T should be safe.

hlissner commented 9 years ago

I didn't implement this directly (I believe it's an edge case), but I did make the repeat keymappings easier for people to change. Update evil-snipe and add this to your config:

(define-key evil-snipe-mode-t-map "f" 'evil-snipe-repeat)
(define-key evil-snipe-mode-t-map "F" 'evil-snipe-repeat-reverse)
ghost commented 9 years ago

Thanks, you are probably right that it is an edge case. Very kind of you to add this.