haya14busa / incsearch-fuzzy.vim

130 stars 3 forks source link

Suggestion #2

Closed itsmealwin closed 8 years ago

itsmealwin commented 8 years ago

First of all, thank you very much for making this plugin. I have been looking for something like this for a long time..

However, I do have a small request: Is it possible to fuzzy search only for 1 word? Let me elaborate, I work on Java a lot and as per Java convention, method names and variable names (aside from constants) are camelCase instead of snake_case. Thus I wish that when I type in /mtdf, the plugin would search for methodFoo instead of method Foo or method_Foo (which is currently the case).

I hope my question is clear enough. Thank you in advance for your answer and happy new year!

haya14busa commented 8 years ago

Thank you for the suggestion, it's interesting! Can you try this branch with below mappings? https://github.com/haya14busa/incsearch-fuzzy.vim/tree/fuzzy-word

map z/ <Plug>(incsearch-fuzzyword-/)
map z? <Plug>(incsearch-fuzzyword-?)
map zg/ <Plug>(incsearch-fuzzyword-stay)
itsmealwin commented 8 years ago

Hello,

Thank you for the fast reply. I tried it and it works perfectly! Just exactly as I wish it to be! Would you merge this feature into the master?

Thank you again for the awesome plugin!

EDIT: I guess I am closing this issue since you have solved it :+1:

haya14busa commented 8 years ago

Thanks. I merged it into master now :sparkles: