Custom Copy/Move to Other Tabs/Recent Location

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aimy
Posts: 186
Joined: 26 Feb 2007 15:44

Custom Copy/Move to Other Tabs/Recent Location

Post 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.
To see the attached files, you need to log into the forum.

aimy
Posts: 186
Joined: 26 Feb 2007 15:44

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

Post by aimy »

Is this impossible? :(

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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.
One of my scripts helped you out? Please donate via Paypal

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

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

Post 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.
To see the attached files, you need to log into the forum.

aimy
Posts: 186
Joined: 26 Feb 2007 15:44

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

Post 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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

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

Post by TheQwerty »

:roll: Why?

aimy
Posts: 186
Joined: 26 Feb 2007 15:44

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

Post 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:

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

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

Post 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.

aimy
Posts: 186
Joined: 26 Feb 2007 15:44

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

Post 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.. :(

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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.
One of my scripts helped you out? Please donate via Paypal

aimy
Posts: 186
Joined: 26 Feb 2007 15:44

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

Post 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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post 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).

Post Reply