-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"f" doesn't work when system language is changed (to Russian). #39
Comments
yes, it's indeed one item (key code translation) vimium c lacking compared with vimium. Current working-around is to replace the "character for link hints" option with characters in your keyboard language (Russian). I haven't got enough ideas to handle other keyboard layout correctly. It's not very suitable to just copy vimium's code. |
Thanks for quick answer. So the working-around you proposed won't suit my use case. |
vimium c has a command of Or, you may PS: LinkHints uses altkey, ctrlkey, shiftKeys to toggle some switches like open-in-new-tab, open-multi-tab, open-tab-and-activate. |
For some cases these will do the trick, but the idea is to automize it so you don't have to think about it at all. |
Currently there's a feature of "mapped keys": https://github.com/philc/vimium/wiki/Tips-and-Tricks#key-mapping, which translates keys and then can be used to translate characters in other languages to English characters, to activate corresponding commands. So, do you like the idea to apply such translation also to LinkHints' inner logic? Then if you map some Russian characters to English characters, the two keyboard layouts will generate same key sequence for Vimium C. |
I think this will be OK. For example, now I have some mappings like:
Instead of this I will have And this will also work for |
No. Sorry I didn't explain it as clearly as I could. Here's a detailed version. Basically, a "Characters for Link Hints" may be asdghjkl, which corresponds to фывпролд on a Russian Keyboard. And then, if you add such key mapping rules:
Then Vimium C will translate а (Russian version of f) to f in the "normal" mode, and translate ы to s in "LinkHints" mode. Therefore, you can press the s key to activate a link, without considering about which keyboard layouts you're using. ================
Conclusion: this feature has landed on Vimum C v1.75.5 and v1.75.7, you may have a try. ======= Updated: now the |
Seems to work, thank you! |
It's because this feature is not enabled by default - you need to add an option of The first line of the example above is ======= Updated: now the |
Thanks! Everything works as I wanted) |
somehow aligned to the philc/Vimium; also for #39 (comment) and fix a bug of mapping keys twice if InsertMode is active
Hello, now the So, could you have a try? And, if there're no bugs about it, I wonder if we may close this issue - I still have no recent plan to implement a feature of auto ignoring keyboard layout like #17 , so this |
Everything works fine, thanks! I think we may close the issue. |
Full list for Cyrillic (Russian and Ukrainian)
upd: Added |
@ww7 Thanks a lot! And the reason why Update: after tests, the method above fails, I'm debugging. Update: a work-around of this bug is to append a space character after |
Well, I've collected related information and write a Wiki page: https://github.com/gdh1995/vimium-c/wiki/Use-in-another-keyboard-layout , and in Vimium C v1.76.2 the option page will contain a link referring to it. Update: v1.76.2 has been released. |
I click 'f', links are highlighted with English letters, and I can't click on them with keyboard if my system language is not English.
Is there a work around this?
The text was updated successfully, but these errors were encountered: