tednaleid / sublime-EasyMotion

Sublime Text 2 plugin to quickly jump to any character in the visible area of the active view.
Apache License 2.0
386 stars 24 forks source link

Option to only use a-zA-Z #10

Closed highend closed 11 years ago

highend commented 11 years ago

Could you please add an option to only use a-zA-Z (excluding 0-9)?

tednaleid commented 11 years ago

That's a good idea. I was thinking about something like this but wasn't sure if people wanted it. How I'm thinking about implementing it is changing it to a configuration variable where you list, in order, the eligible characters that you'd like to use. So the default would be:

"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

You'd just need to override it so that the digits weren't part of it. I think this would also make it more flexible where people who don't have those characters on their keyboard could use whatever ones are easiest for them to type. Or someone could alter the order of keys so that home row keys (for their keyboard layout) are first.

highend commented 11 years ago

Such a configuration variable would be the best imho. Especially if e.g.

hjklasdfHJKLASDF

Would really use the right home row keys first, left keys second and then right (with shift), etc. to show the nearest characters :)