For creating a new folder XY provides quite some options.
Nevertheless I really miss one feature (which in my early days of using NC was extremly handy):
The name of the marked folder (in the folder list / tree of a pane) should be used as the name for the newly created folder (via e.g. CTRL+N) instead of the usual "New Folder" ("Neuer Ordner").
Very often I just need to change a detail in the wording of the foldername and I am done.
In the current setting I need to completely type the new name, or do an additional copy/paste from the other folder name.
I thought to ask here if someone had that issue and found a solution before I go to the "wishes" section.
And yes, I tried my best to search the forums before I asked (and I am not good at coding, to try my own bypass).
Thanks!
"create new folder" with predefined name from existing folder ??
"create new folder" with predefined name from existing folder ??
XYplorer 24.10 / Win 11 Pro x64
Re: "create new folder" with predefined name from existing folder ??
Remove CTRL+N from "New Folder" in Menu - Tools - Customize Keyboard Shortcuts
Menu - User - Manage Commands...
Category: Run Script
Create a new entry
Caption: New folder
Script: (Use the "Edit..." button)
After clicking OK in the "Edit Script" window, click on "Assign Keyboard Shortcut..." and assign... CTRL+N
Category: Run Script
Create a new entry
Caption: New folder
Script: (Use the "Edit..." button)
Code: Select all
$default = "Neuer Ordner";
$focus = <get focusedcontrol>;
if ($focus == "T") { $folderName = <curfolder>; }
elseif ($focus == "L") {
if (exists(<curitem>) != 2) { $folderName = $default; }
else { $folderName = <curname>; }
}
$new = input("Enter new folder name...", , $folderName, "e", 8:=":newfolder");
end (!trim($new)), "Can't create an empty folder name, aborted!";
end (exists($new) == 2), "A folder with that name already exists, aborted!";
new($new, "dir");
One of my scripts helped you out? Please donate via Paypal
Re: "create new folder" with predefined name from existing folder ??
well, this is something .... Working.
you made my day! and these steps give me ideas
THANKS highend!
you made my day! and these steps give me ideas
THANKS highend!
XYplorer 24.10 / Win 11 Pro x64
XYplorer Beta Club