New Rename Without Extensions Question

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
VeeGee

New Rename Without Extensions Question

Post by VeeGee »

Good afternoon all,
Loving the new "+++ Rename Without Extensions" option and have used it quite a bit lately. Today I ran into a problem where an older script I had misnamed a file and I was left with a file that had an incorrect extension. Script renamed "Freddy vs. Jason (2003).nfo" to "Freddy vs.Jason (2003)" due to the period contained within. I have updated the script.

With this new option enabled, how do you rename an extension when needed using the in-line renamer ? Do I just use another rename option (such as Rename Special / Set Extension) (which is what I used) ?

I thought using TAB to jump between the filename and extension would be cool, but inside the in-line renamer it just jumped me to the other pane.

Many thanks,

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: New Rename Without Extensions Question

Post by jupe »

Activate inline rename then press right arrow twice.

VeeGee

Re: New Rename Without Extensions Question

Post by VeeGee »

Thanks ! Works perfectly.

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

Re: New Rename Without Extensions Question

Post by admin »

BTW, I noted that 95% of the time when renaming a file I want to slightly modify the current name, and not replace it completely. So the current preselection is something I almost never need. What about making that preselection optional?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: New Rename Without Extensions Question

Post by Filehero »

Code: Select all

v21.20.0001 - 2020-10-17 14:36
    + Added tweak to get rid of the preselection when entering a rename box:
        RenameNoPreselect=1
      Currently it's implemented in a way that also skips preselection when 
      focusing a text box in various places of the interface.
For the standard renaming of file items that's really a good change.

Could you exclude the AB from this change?
#1014; doesn't preselect the path anymore which is the whole purpose of "focusing" the Address Bar this way for me.

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

Re: New Rename Without Extensions Question

Post by admin »

Filehero wrote: 18 Oct 2020 09:57 Could you exclude the AB from this change?
#1014; doesn't preselect the path anymore which is the whole purpose of "focusing" the Address Bar this way for me.
You focus the AB to select the path via scripting? That's an evil hack! :biggrin: There must be another way, or else I will add one!

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: New Rename Without Extensions Question

Post by Filehero »

admin wrote: 18 Oct 2020 11:49 You focus the AB to select the path via scripting?
No.

But when I want to focus the AB with the keyboard I use this script to toggle the AB focus.

Code: Select all

  if (get("FocusedControl") != "A") {
    #1014; // focus AB
  } else {
      #1013; // cycle focus (F6) to unfocus AB
  }

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

Re: New Rename Without Extensions Question

Post by admin »

Looks like focusing the Address Bar still works using this script. But you miss the preselection here?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: New Rename Without Extensions Question

Post by Filehero »

Yes, in this case the preselection makes very much sense to me. I mean, I actually don't want to rename the Address Bar, e.g. to Sushi Bar. :titter:

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

Re: New Rename Without Extensions Question

Post by admin »

:)

But why do you want the preselection here???

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: New Rename Without Extensions Question

Post by Filehero »

admin wrote: 18 Oct 2020 16:04 But why do you want the preselection here???
In order to copy the path immediately. With the arrival of the breadcrumbs I slowly stopped using 6 key navigation. So I focus the AB mostly to copy the current path - with the benefit of the visual highlighting by preselection.

With my habits it's quite the opposite to renaming a file item.

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

Re: New Rename Without Extensions Question

Post by admin »

Okay. Next beta...

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: New Rename Without Extensions Question

Post by Filehero »

admin wrote: 18 Oct 2020 16:41Okay. Next beta...
Works. Thanks a lot. :)

Post Reply