Page 1 of 1

Custom Copy/Move to Other Tabs/Recent Location

Posted: 30 Oct 2011 06:01
by aimy
Hi again.

Is it possible for me to make a custom button that able to Copy/Move the selected items to:
1. Other Tabs
2. Recent Location

The overall idea:
2011-10-30_122344.gif
Thank you.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 01 Nov 2011 13:31
by aimy
Is this impossible? :(

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 01 Nov 2011 13:45
by highend
Don't have enough time atm, but at least the "move / copy to tab" should be achievable via scripting (but it won't look so "styled" like in your screenshot).

If the recent locations are available via scripting: Don't know, not enough time to research that.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 01 Nov 2011 14:00
by TheQwerty
How about using the File > Move/Copy/Backup To... submenus?
For instance:
Copy-Settings.png
which will give you:
Copy-Menu.png
The command for the Move To menu is #151, so see if you can create the other one yourself.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 01 Nov 2011 18:48
by aimy
Thanks highend and Qwerty for your response.

But that's not it. I know that there's such option.

I adamantly want to achieve exactly as the screenshot that I've posted.

Well I hope that I can.

Thanks.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 01 Nov 2011 19:01
by TheQwerty
:roll: Why?

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 02 Nov 2011 09:52
by aimy
TheQwerty wrote::roll: Why?
Because in my situation, that's all I need i.e. move the selected files to another tab or to the recently visited location.

Thanks.

Anyone can help me please?

Admin?? :cry:

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 02 Nov 2011 11:47
by TheQwerty
Well I can tell you it is possible, but significantly more complicated since you want to generate a dynamic menu.

Frankly, it's not worth all the effort to recreate the menu just because the current one offers more functionality than needed.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 09 Nov 2011 05:27
by aimy
TheQwerty wrote:Well I can tell you it is possible, but significantly more complicated since you want to generate a dynamic menu.

Frankly, it's not worth all the effort to recreate the menu just because the current one offers more functionality than needed.
Yeah I really thought that it is possible..

It's just that I don't know how I'm gonna pull out the other tabs & recent location directory using a script.

I really hope that can someone could lend me a help.. :(

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 09 Nov 2011 10:10
by highend
E.g.:

tab()

has a count parameter. So switch to one of the panes, count the tabs there and use a while loop to iterate through them, saving their paths into a variable.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 23 Nov 2011 09:05
by aimy
Again,

Is this possible with the combination of "Recent Locations|:mru" button "mru" and tab() function?

With the new version 10.60?

Don, could you please help me.. :(

Thank you.

Re: Custom Copy/Move to Other Tabs/Recent Location

Posted: 23 Nov 2011 19:39
by serendipity
aimy wrote:Again,

Is this possible with the combination of "Recent Locations|:mru" button "mru" and tab() function?

With the new version 10.60?

Don, could you please help me.. :(

Thank you.
You can combine the button commands but they will do what the buttons do, i.e. go to MRU or Tab locations.
But in your case you want to use "copy to" command to these locations, so it cannot be done with buttons.
The lists Tab and mru have to be read manually, there is no way out.
OK, here is a quick script that will let you copy the selected items to Tab or mrus of copyto.

Code: Select all

//Popup Tabs (of activepane) and copyto MRUs as menu
  $tabcount= tab (, "count");
  $tabpaths="";
  $count=1;
  WHILE ($tabcount>$count-1){
  $newpath= tab (, "path",$count);
  $tabpaths="$tabpaths|$newpath";
  $count++;
  }
  $tabpaths= substr ($tabpaths, 1);
  $mrupaths= get("list_copyto", "|");
  
  copyto popupmenu("$tabpaths|-|$mrupaths");
Note: getting recent location data requires saving XY first, reading ini etc etc (in short, i wont do it).