philc / philc/vimium

Feature request: allow several commands to single mapping

Open
#2,492 1 comment 6 reactions 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

That would be a real power of Vim: map a sequence of commands to some keys. For example, to yank a word and paste into google translate:
map zt enterVisualMode y createTab https://translate.google.com/?q=%s#auto/en/
Presumably there needs to be a better support for yank commands and buffer for the %s part.

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 by reviewing the existing key-mapping implementation and the handling of yank commands and buffers. Define how a mapping can execute a command sequence and how the yanked value substitutes for %s; done means the example mapping can run its commands and open the translated result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.