Vimium: Request: Add 'Duplicate tab' feature

Created on 27 Oct 2010  路  12Comments  路  Source: philc/vimium

I don't even know how to get Chrome to duplicate a tab without using the mouse (right-clicking on the tab), so I think this command would be another great niche for Vimium.

Not sure what the default key should be, but perhaps something like 'p'? Since yy copies the current URL, it'd be like pasting the current url in a new tab. It might make more sense to have 'p' open a new tab and paste in whatever's on the clipboard, but something along those lines?

suggestions

Most helpful comment

@simao: With the next release this can be achieved using yy (yank URL) followed by P (paste URL in new tab).

All 12 comments

Duplicating a tab is probably worth putting in the "advanced" section when we make one. It could be the case that there's no binding to it by default, but the command has a name and can be bound.

p should very likely be "open a tab and paste the URL on the clipboard" to parallel vimperator.

It would be nice if it could actually trigger Chrome's "Duplicate Tab", which also copies the page history. With Chrome's duplicate, you can go 'back' through your history in the duplicated tab.

Thought this might be a cool feature to jump in on, but my reading of the documentation indicates Chrome Extensions do not have support for the native "duplicate tab" function as of yet.

I think the shortcut for it should be "fy", "fY", "fyy".. whatever, but "f" will highlight the links, so this probably wouldn't be a good idea. What about just "gf" or something like that ?

Yeah, Chrome doesn't have programmatic access to tab duplication -- this has been an annoyance for a while now.

Since chrome doesn't support duplicating tabs using it's javascript API, would it be ok to open a new tab with the current URL? Maybe we shouldn't call it "Duplicate", though.

I can write a patch for this.

@simao: With the next release this can be achieved using yy (yank URL) followed by P (paste URL in new tab).

You can "duplicate" (open new tab with same url, losing tab history) natively by doing alt+(d, Enter) or ctrl+L, alt+enter.

It would be nice to get the implementation of this for free from Chrome's extension API. A good first step is to star this issue if you haven't already, as @cespare pointed out: http://code.google.com/p/chromium/issues/detail?id=36007

There seems to be a duplicate tab function in chrome now. (http://developer.chrome.com/extensions/tabs.html#method-duplicate)
Nothing to stop this to be implemented

Shouldn't this issue be closed? yt duplicates tab..

@wildeyes yes, it should

Was this page helpful?
0 / 5 - 0 ratings