hlissner / evil-snipe

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

Smartcase support? #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

Thanks for a great package. Evil-snipe is a must-have.

One thing I am missing though is smartcase, which is a brilliant vim feature.

It is simply

if a pattern contains an uppercase letter, it is case sensitive, otherwise, it is not. 
For example, /The would find only "The", while /the would find "the" or "The" etc. 

It would be nice to have smartcase searches with s (as an option at least). f and t are probably better cased.

hlissner commented 9 years ago

Good idea! I've implemented it as of 1.5.8 with the option evil-snipe-smart-case:

(setq evil-snipe-smart-case t)

I'll close this issue for now, but I haven't tested the feature extensively, so feel free to reopen if there are any problems.

ghost commented 9 years ago

Seems to be working brilliantly, but will report any bugs/glitches.