vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Mapping combination of multiple commands to a single key

Open Mehradzie opened this issue 9 years ago • 4 comments

Say I want to create a new removeTab combination that closes the tab and also moves back in the tab orders rather than landing on the tab right after.

This is what I had in mind map <a-x> removeTab + previousTab

Is there a way to do this and if so what separator I need to use between two commands removeTab and previousTab

Mehradzie avatar Nov 06 '17 01:11 Mehradzie

This is not currently possible.

smblott-github avatar Nov 06 '17 07:11 smblott-github

Yes currently it's neither possible nor badly needed.

But just in this case, Vimium may add an option to removeTab - the result should be like map <a-x> removeTab left.

gdh1995 avatar Nov 06 '17 08:11 gdh1995

Thanks @smblott-github 👍 and thanks @gdh1995 The way you started I thought you gonna ban me from using it as well. was just asking. lol 😋

Mehradzie avatar Nov 06 '17 20:11 Mehradzie

Yes currently it's neither possible nor badly needed.

But just in this case, Vimium may add an option to removeTab - the result should be like map <a-x> removeTab left.

I think this is a needed feature, which cVim offers. Chrome opens new links at the right of the current tab, when I close the new tab, I want to land on the previous page where I just visit. For example, I'm visiting page A, and click a link and open a new page B which is at the right of page A, when I'm done visiting page B, I want to continue my visiting on page A, but not other pages at the right of page B, which are totally irrelevant to the page A. A --> B, B --> A ✅ continue the visiting context A --> B, B --> C*** ❌ break the visiting context please consider of this feature @smblott-github , thanks :)

just2d avatar Jun 20 '19 03:06 just2d