haya14busa / vim-easymotion

DEPRECATED
https://github.com/Lokaltog/vim-easymotion
23 stars 0 forks source link

Be more explicit for search #4

Closed scottchiefbaker closed 10 years ago

scottchiefbaker commented 10 years ago

When I hit \\s to search for chars it gives me a 1> prompt. It isn't immediately apparent what I should do next. Is it possible to change the prompt to say "Search for character:" or something? That's what Lokaltog's version does.

haya14busa commented 10 years ago

I implemented g:EasyMotion_prompt option, but now that you mention it, this is not completely configurable now because I prepended the how many times you should type (to distinguish from search two and above character find motion).

OK, 1> prompt isn't good message for sure, so at least I'll modify default message("Search for 1 character >" or something ) and try to make it more configurable.

Thanks

haya14busa commented 10 years ago

I modified default g:EasyMotion_prompt

let g:EasyMotion_prompt = 'Search for {n} character(s):  '

When you type <Plug>(easymotion-s) (\\s), the prompt message will become Search for 1 character:

You can customize this message using {n} and {s} for other find motion too.(such as <Plug>(easymotion-s2), <Plug>(easymotion-sn))

Sample:

let g:EasyMotion_prompt = '{n} >>>'
scottchiefbaker commented 10 years ago

Thanks for the prompt fix, it's much better now.