Move Selected Tab to Destination

I bet this is simple, but I can't make it work. I just want to move a selcted folder to a new tab in the destination lister. I know moveselectedtab will keep me in the source but how do I get it then to the destination?

You can open the selected folder in the source, in a new tab in the destination, by editing the ALL FOLDERS file type events as indicated in the screen grab below.


1 Like

You could also try this

<?xml version="1.0"?>
<button backcol="none" display="icon" separate="yes" textcol="none">
	<label>MoveTabToOther</label>
	<tip>MoveTabToOther</tip>
	<icon1>#AEIcons_24TabImages:MoveTabToOther</icon1>
	<function type="normal">
		<instruction>Go TABMOVE</instruction>
		<instruction>Set FOCUS=Dest </instruction>
		<instruction>Go TABSELECT=last </instruction>
	</function>
</button>

Looks like two great options. Never would have thought of using the files Types editor, but that may save button space. I've copied the instructions from the button, xbprm, and am just about to test the button out. I don't know why I couldn't just copy the button text you've laid out there and pasted it to the tool bar as I usually do. DOpus wouldn't give me a paste option, though the xml code was on clipboard..?
thank you both.

If you want to move the actual tab from one side of the lister to the other than you can simply drag & drop it there. Just be sure to drag it by the icon, not the label.

Also, the reason the button code above didn't work before was that it was missing the line from the top. I've corrected the post so it should work properly now.

Here's a very simple command for opening the selected folder as a new tab in the destination side:

Go FROMSEL OPENINDEST NEWTAB

Oh drag n drop, very cool. Thanks for the button update also, Leo, and the nice code.

I just realised that you can also drag folders from the file display on to the empty part of the tab bar to open them as new tabs.

Wow, that's pretty darn handy. I love this program.

1 Like

Wow, just wow.
Not only do I have middle mouse button to open folder in new tab;
I now have Ctrl + middle mouse button to open folder in new destination lister tab.
Using the (double middle mouse button alternate method and) file type event: go NEWTAB OPENINDEST
This program. :fire:

When I move a tab to the destination is there a way to keep focused on it?
This doesn't work. It focuses the tab that was in the destination before the tab got moved.

Go TABMOVE DESTPATH Set FOCUS=Dest

Always a good idea to look at the documentation for the commands/arguments you're using first:

Your reply wasn't bad, why delete it. Before any replies I learned about move to last as well, and was coming back here to say it works but is clunky. But couldn't find this post for some reason.

Go TABMOVE=active isn't working for me.

Works here. Can you be more specific? In what way doesn't it work? How are you running it?

Sorry, I meant the active part doesn't work. The focus stays with the source lister.
I'm using it with a hotkey. I checked and didn't find any conflicts yet.

You almost had it earlier.

Go TABMOVE=active 
Set FOCUS=Dest 

This also works if you are moving the only tab and the lister collapses into a single display.

1 Like

Perfect thank you. :+1: