Page 1 of 1

Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 08 Aug 2020 07:46
by jibcutter
Hello,

New User who just purchased Pro as soon as I found out about the software this evening. There is an issue I have and maybe I'm missing the configuration setting or maybe it doesn't exist.

I'm carefully but quickly renaming photos in a unique way for a scientific dataset where I'm manually adding certain ID### to the end of each file name (and not in a patterned way that could be automated).

All my files are TIF and I already have the EXT column as 2nd column in Detail View where I'm doing my renaming. I hid file extensions under Tools > Customize List > Hid File Extensions

So I'm all good on that front. I also enabled serial renaming so after I F2 to rename an image I can add my bit of unique ID### to the photo; however, when I use the up/down arrows for serial rename it puts my cursor behind the *.TIF so I then have to waste 4 keystrokes to go back infront of the file extension to begin typing my custom ID###.

I looked around in the forums and found an old script that allows renaming of files (viewtopic.php?t=17386), saved as a User Cmd > Run Script with shortcut of Alt+Z, but it still seems a bit slower than if I could do the simple UP/DOWN serial renaming with the cursor going before the .TIF OR simply finding a way to omit the file extension when renaming.

Given that the only topic I found on this issue was 2018 I figured I'd dredge it back up.

Thanks

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 08 Aug 2020 09:07
by highend
I'm not aware of any other possibility than using a script.

E.g. for down + rename (bind it to alt+down)

Code: Select all

    sel "+1";
    $base  = trim(regexmatches(<curname>, "^.*\."), ".", "R");
    $trail = input("Enter trailing part");
    $new   = $base . $trail;
    renameitem("$new.?");
And for alt+up, just use sel "-1"; instead

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 19 Sep 2020 19:02
by admin
Well, I think it would make sense under these conditions to exclude the extension from the rename box. Probably not only on serial rename but also on normal rename. I think I will add that. :cup: :tup:

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 19 Sep 2020 21:01
by JLoftus
Thanks Don, is this related to my post from last year?
viewtopic.php?f=5&t=21175

I do a lot of serial renaming, and I would love the option to have "F2" on moving to the next item select ONLY the filename, not the extension. This would be a huge time saver for me.

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 19 Sep 2020 21:05
by admin
No, was not related to that post. I'll see if I can do sth about F2 later...

PS: Actually I'm thinking about offering an option to always (regardless of Hide Extensions) keep the extension out of the inline rename box. You very rarely want to rename it anyway. And there is the "Set Extension" dialog if you really have to!

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 19 Sep 2020 21:34
by JLoftus
That's true, it is probable most people would rarely wish to rename the extension. That would be a welcome option!

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 20 Sep 2020 21:53
by Marco
Just a little thing to fix: if the name contains dot, when you press F2 not the whole name will be selected but only the part before the dot (the smartness that preselects the whole basename still kicks in).

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 20 Sep 2020 22:02
by admin
Really? :shock: I had seen that here before release and fixed it. And it is fixed here. :?

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 21 Sep 2020 09:16
by Marco
Oh, I get it now :oops:
I have to both tick "Hide Extensions" and "Hide extensions from rename edit box" to disable that smartness. Still feels like a minor glitch...

Re: Omission of File Extension When Quick Renaming (Up/Down Arrows)

Posted: 21 Sep 2020 09:54
by admin
Oh, yes, you were operating in the "Hide Extensions" mode. Yes, I see it now, too. Fix comes. :tup: