hlissner / evil-snipe

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

t/T with evil-snipe-override-mode does not behave correctly #72

Open TheBlob42 opened 4 years ago

TheBlob42 commented 4 years ago

Config

Here is my config for evil-snipe:

(use-package evil-snipe
  :after evil
  :config
  (evil-snipe-mode 1)
  (evil-snipe-override-mode 1))

I have tested it with my personal config as well as a "blank" config containing only evil and evil-snipe

Example

I want to jump to a whitespace character with "t", but it sometimes jumps onto a whitespace instead of in front of it even while pressing "t" multiple times. With "T" it seems that it will always jump onto the whitespace instead of in front of it.

evil-snipe-t (I press "t\<space>" followed by "t" multiple times)

evil-snipe-T (I press "T\<space>" followed by "T" multiple times)

Expected behavior

I would expect that the cursor jumps correctly in front of the target whitespace.

"Solutions"

I can solve this issue by setting evil-snipe-skip-leading-whitespace to nil, but then I loose this functinality.

I had a look into the code, but I would need a lot more time to find out what is going wrong. I hope you have an idea :grimacing: