[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.
Recent File Operations - Can it be edited with -----> mru ?
Recent File Operations - Can it be edited with -----> mru ?
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.
Re: Recent File Operations - Can it be edited with -----> mru ?
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.
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.
Re: Recent File Operations - Can it be edited with -----> mru ?
Edit > Recent File Operations... ? It also has a dedicated button under Customize Toolbar.
Re: Recent File Operations - Can it be edited with -----> mru ?
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 ?
FYI, the Recent File Operation menu is built from Undo/Redo data (action log).
FAQ | XY News RSS | XY X
XYplorer Beta Club