Using vimium to add custom javascript commands
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
With the ease of making site-specific key mappings, I would like to add in the ability for the user to execute arbitrary javascript one-liners on the open webpage with a vimium hook. This would allow savvy users to quickly enhance keyboard support for a unique site, and create new vimium commands.
For example, the following mapping and command would be possible:
map a javascript alert("Hello world!");
When the user presses 'a', vimium would eval the javascript stored under that command and alert the user.
I would be willing to code this feature, but I would like to ask a few things first:
- This feature requires configuration, but would add a great amount of utility to vimium, greatly expanding its possible feature set. However, would it be applicable enough to be included in the master branch, or would it have to live on a fork.
- I'm new to this project and coffeescript, though I have experience in javascript web development. Where would I get started adding this feature?
- Would anyone else find this useful?
Thanks, all.
-Garrett
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Vimium’s custom key-mapping and command-handling paths, then examine how the project’s CoffeeScript and JavaScript are organized. Before implementation, resolve the configuration syntax and project-scope questions raised in the issue; done would require an agreed behavior for executing mapped JavaScript on the open webpage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- coffeescript, javascript
- Domain
- devtools, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100