Page 2 of 2
Re: Rename Special for Folders?
Posted: 20 Apr 2016 14:00
by mrbosco
OK, so there's no way of easily renaming a folder changing underscores into spaces?
How about a script?
Re: Rename Special for Folders?
Posted: 20 Apr 2016 14:12
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
Re: Rename Special for Folders?
Posted: 20 Apr 2016 14:39
by mrbosco
Thanks. I'll give it a try.
Re: Rename Special for Folders?
Posted: 20 Apr 2016 14:51
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.
Re: Rename Special for Folders?
Posted: 20 Apr 2016 14:56
by highend
That was always working...
Re: Rename Special for Folders?
Posted: 20 Apr 2016 15:00
by admin
I'm just trying to make RS work on the tree. Looking good...

Re: Rename Special for Folders?
Posted: 20 Apr 2016 15:10
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.