Recent File Operations - Can it be edited with -----> mru ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Jerry
Posts: 828
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Recent File Operations - Can it be edited with -----> mru ?

Post by Jerry »

[Using XYplorer 64bit 28.00.0300]

Is there any way to edit the Recent File Operations menu? I didn't see it listed under Tools > List Management. I use this all the time and would love to have a permanent section of common operations I do. In other lists, you can do this with the '-----> mru' separator.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

Jerry
Posts: 828
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Recent File Operations - Can it be edited with -----> mru ?

Post by Jerry »

ANSWERING MY OWN POST:
I later realized that the Recent File Operations menu is a dynamic menu and thus doesn't have the usual maintenance functionality as for the static menus/lists. So I created the following script to do what I needed. I used ChatGPT initially, but the script it generated didn't work as-coded and I had to iterate it a bit. But then ChatGPT just couldn't figure out how to accurately determine the number of selected items in the List, so I went to Google AI-Mode for the answer to that. Here's the final version. It first presents a menu to choose Copy or Move, then a second menu with the list of destinations.

Code: Select all

//=== Move/Copy to Preset Locations ===//
// This script pops up a menu of destinations and actions (Move or Copy),
// then performs the chosen operation on all selected items.

 // Define your preset destinations here:
    $destinations = <<<#---
C:\
D:\
#---;

// Require a selection
   $selcount = gettoken(<selitems |>, "count", "|");
   if ($selcount == 0) {
	msg "You must select one or more items to continue.";
	end 1==1;
	}

// Ask for Move or Copy first
    $action = popupmenu("Move|Copy");
    if ($action == "") { end 1; } // user cancelled

// Build menu of destination names, include the $action has a disabled header
    $menu = $action . " (" . $selcount . " items);;;4<crlf>--------------<crlf>" . $destinations;

// Show menu of destinations
    $choice = popupmenu($menu);
    if ($choice == "") { end 1; } // user cancelled
    $dest = trim($choice);

// Perform the operation on selected items
    if ($action == "Move") {
        moveto $dest, <get SelectedItemsPathNames |>;
    } else {
        copyto $dest, <get SelectedItemsPathNames |>;
    }
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

yuyu
Posts: 147
Joined: 19 Jun 2018 12:40
Location: Win 7 x64 - 100%

Re: Recent File Operations - Can it be edited with -----> mru ?

Post by yuyu »

Edit > Recent File Operations... ? It also has a dedicated button under Customize Toolbar.

Jerry
Posts: 828
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Recent File Operations - Can it be edited with -----> mru ?

Post by Jerry »

yuyu wrote: 19 Oct 2025 04:29 Edit > Recent File Operations... ? It also has a dedicated button under Customize Toolbar.
Yes, I and still use that. But the problem is that the menu is changing all the time and often doesn't show a certain few destinations I use frequently. For example, if I happen to do a lot of moves or copies to other one-off destinations, the commonly used ones go off the menu.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

admin
Site Admin
Posts: 65064
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Recent File Operations - Can it be edited with -----> mru ?

Post by admin »

FYI, the Recent File Operation menu is built from Undo/Redo data (action log).

Post Reply