Clone the curently active tab?

Hello there,

I tried to create a shortcut that clones the active tab (including the selected files).

That was my first idea:

@Set sel = {allfile}
Go {sourcepath$} NEWTAB
Select {$sel} DESELECTNOMATCH

But unfortunately the first item of the cloned tab always is focussed and if there are multiple or none files selected it doesn't work at all.

Hmm, i don´t think, you can´t clone the state of selected files, only the tabs themselves.

This may be related to this configuration option!?


The command Go TABDUPLICATE should do what you want but unfortunately it doesn't keep the selection. Perhaps this could be added as an argument?

Maybe there is an other way to correctly apply the focus to the newly created tab?