Page 1 of 1
Recent File Operations - Can it be edited with -----> mru ?
Posted: 19 Oct 2025 01:34
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.
Re: Recent File Operations - Can it be edited with -----> mru ?
Posted: 19 Oct 2025 02:53
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 |>;
}
Re: Recent File Operations - Can it be edited with -----> mru ?
Posted: 19 Oct 2025 04:29
by yuyu
Edit > Recent File Operations... ? It also has a dedicated button under Customize Toolbar.
Re: Recent File Operations - Can it be edited with -----> mru ?
Posted: 19 Oct 2025 04:37
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.
Re: Recent File Operations - Can it be edited with -----> mru ?
Posted: 15 Nov 2025 12:10
by admin
FYI, the Recent File Operation menu is built from Undo/Redo data (action log).