[Feature Request] Custom Key Mapping to multiple commands
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
I'd like to create a key mapping to perform two commands in a row. Namely
- close a tab
- go one tab to the left.
To Reproduce
I've tried adding the below mappings (one at a time) in the options page, which both only register the first command.
map x removeTab previousTab
map x removeTab, previousTab
I could not find any documentation on this in the README or wiki.
Browser and Vimium version
macOS Ventura 13.4
Chrome 114
Vimium 1.67.4
This is an action I perform frequently and would like to be able to do it with a single keystroke. Please let me know if this is supported already. Thanks!
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 at the options page where the mapping examples are entered, then trace how removeTab previousTab is parsed and dispatched. Check the README and wiki for existing mapping syntax; done means one mapping executes both commands in order and the supported syntax is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100