Rename Special for Folders?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Rename Special for Folders?

Post by mrbosco »

OK, so there's no way of easily renaming a folder changing underscores into spaces?
How about a script?

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

Re: Rename Special for Folders?

Post by highend »

E.g.:

Code: Select all

    $path = gettoken(get("tree"), 1, "|");
    renameitem(regexreplace(gpc($path, "component", -1), "_", " "), $path);
Rename the current selected folder in the tree
One of my scripts helped you out? Please donate via Paypal

mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Rename Special for Folders?

Post by mrbosco »

Thanks. I'll give it a try.

mrbosco
Posts: 141
Joined: 03 Sep 2011 09:40

Re: Rename Special for Folders?

Post by mrbosco »

Thank You! Works fine.
Interesting if the folder and focus are on the right side the Rename Special is not grayed out and it works as expected.

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

Re: Rename Special for Folders?

Post by highend »

That was always working...
One of my scripts helped you out? Please donate via Paypal

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

Re: Rename Special for Folders?

Post by admin »

I'm just trying to make RS work on the tree. Looking good... :)

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

Re: Rename Special for Folders?

Post by TheQwerty »

Erm... Those two screenshots don't seem to agree with what you're saying.

1) I'm not sure which control has focus in the screenshot of XY. It almost looks to me based on the blue around Planet of the Apes (1968).xml that it is the list pane that has focus.

2) The items which are enabled/disabled in the File menu seem to correspond with the assumption that the list is focused and nothing is selected.

If the Tree was focused Move/Copy/Backup To... would be enabled.
If the Address Bar or Catalog were focused Open Focused Item would be disabled.


It's a bit of a moot point since indeed Rename Special is not (yet) enabled when the Tree has focus, but just wanted to clarify.

Post Reply