ice9js / ace-jump-sublime

Jump between characters in Sublime Text 3 without using a mouse at ease
MIT License
202 stars 30 forks source link

"ace_jump_word" doesn't work with cyrillic #16

Open certainlyakey opened 9 years ago

certainlyakey commented 9 years ago

ace_jump_word command doesn't work with cyrillic letters, instead the plugin reopens the panel without showing results. Strangely ace_jump_char does work. The file encoding I tried this with is UTF-8, and it is the latest version of ST3.

It would be a nice touch if the labels were in cyrillic too if a cyrillic char is used (ordered according to the russian alphabet as the most used cyrillic alphabet, or this could be made user modifiable for serbian, ukranian alphabets etc.) so a user wouldn't need to change the keyboard layout every time if working with an all-cyrillic text.

ice9js commented 9 years ago

The regex currently used by word mode (\b{}) , allows only for alphanumeric characters, that's why you're having the issue. I tried experimenting with it but I wasn't happy with the results so far. As soon as a satisfactory, alternative solution is found, I'll change it.

As for changing the labels, I see this could help and I think I might have a not so complicated soliution, however I lack the time to write it at the moment, so just create another ticket for 'multiple labels sets'.