philc / philc/vimium

[Feature Request] Custom Key Mapping to multiple commands

Open
#4,270 1 comment 1 reaction 0 assignees View on GitHub

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

  1. close a tab
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.