Closed jdhao closed 2 years ago
BTY, this function has benn added yet? To achieve this function, what we have to do is just to add a map between about 7000 characters and 26 alphabets which can resolve most situations. It should not be too difficult.
I have tried to add the feature myself, but found the vim-sneak code hard to understand... So I haven't been able to do it myself... 😿
I have tried to add the feature myself, but found the vim-sneak code hard to understand... So I haven't been able to do it myself... 😿
Maybe this can bring you a surprise. https://github.com/easymotion/vim-easymotion/pull/455
@draftman9 Thanks for this info, but I have since switched to hop.nvim (yes, basically the same feature as vim-sneak).
Vim or your OS input method should deal with this. Then whatever input sneak gets is simply mapped to your custom g:sneak#target_labels
.
Adding explicit support into Sneak is out of scope.
It would be great if we can also jump to Chinese characters using the first letter of its Pinyin, because if we use the Chinese character itself for jumping, we have to type several key strokes (which is usually the Pinyin of a Chinese character, of course, there are other ways, but pinyin is the most used way) to get the character.
A crude translation of the above English text:
Suppose we have the above Chinese texts and we want to jump to the Chinese words
汉语
(the corresponding pinyin ishan yu
), it would be great if we can type the sneak shortcut, and then presshy
to jump to the position where words汉语
exist.Some thought on how this may be implemented:
A similar discussion about this feature for vim-easymotion is here.