-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Add all commands to chrome's commands API #56
Conversation
Add all commands to chrome.commands. This allows to trigger commands with highest priority using the keyboard shortcuts defined in chrome://extensions/shortcuts This closes gdh1995#55
But this might not work as expected: "most" (>= 80%) commands need real Added: currently Vimium C can grab most keyboard events, unless:
|
Could you clarify on ">= 80%"? I couldn't find a single command that doesn't work. |
For example, all of content commands relies a The only detail as I remembed that may be different is, for an iframe of background commandsSome background commands also depend on ports, if parts of its logic wants some info on content pages, like frame title, URL and selected text. Besides, some error reports also expect ports to show on Vimium C's HUD. This is why I didn't expose an option to re-map the 4 global commands - only quite limited comands are suitable, but I was once not interested enough to collect them. But since requested, maybe I'll add 1~3 new commands to manifest.json. designI think the design of |
Sorry, I'm not a good programmer and I barely ever wrote a browser extension. So I'm not the one to know and/or understand the imperfections of this implementation. What caused me to do this is that I usually want |
Users are not limited to only 4 "global" shortcuts. They can configure as many as they'd like. You are only limited to having 4 commands with the "suggested_key" attribute. |
Deprecated by Vimium C v1.76.2 which has implemented #55 (comment). |
Add all commands to chrome.commands. This allows to trigger commands
with highest priority using the keyboard shortcuts defined in
chrome://extensions/shortcuts
This closes #55