If you look at it in a different way, doesn't "Swap file basename only" make more sense as far as being a safer way to go. This way you are maintaining the proper extension when renaming files with different extensions yet at the same time when you are dealing with files with the same extension it really doesn't matter. Does it?myrnalarson wrote: ↑22 Sep 2019 19:50 I guess Admin never expected that a user would try to swap names of two files with different extensions.
Thumbnails not updated after file is renamed
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Thumbnails not updated after file is renamed
-
myrnalarson
- Posts: 68
- Joined: 29 Apr 2011 16:46
Re: Thumbnails not updated after file is renamed
If the current behavior has never been questioned before, I'd say it's rare. Whether to add a specific option to include or exclude extension when swapping (as you have for renaming), I'd say depends on how difficult that is. I AM using a script for swapping now.
But, again, my problem is with the thumbnail cache not updating. I spent more than an hour looking for a file that was in fact right there where it's supposed to be, but unrecognized by me because of the wrong thumbnail *. Whether the renaming script has anything to do with that, I don't know. It may be completely unrelated.
This is not an infrequent issue for me: I have keyboard shortcuts set up to refresh all or selected thumbnails.
* Since I'm working with images, I'm in thumbnail view the whole time. And it's the thumbnail that 'identifies' the file to me more than the name. Here's an example: the files are Beethoven Sym #5 01.psd, Beethoven Sym #5 02.jpg, Beethoven Sym #5 03.tif, etc. The 2-digit number indicates my opinion as to quality. That opinion may change after I have the image in InDesign, my DTP program. So I want to swap the file names to indicate the new ranking. Obviously I wouldn't want the extension to change; I want to change just the 2 digit number (the rank).
But, again, my problem is with the thumbnail cache not updating. I spent more than an hour looking for a file that was in fact right there where it's supposed to be, but unrecognized by me because of the wrong thumbnail *. Whether the renaming script has anything to do with that, I don't know. It may be completely unrelated.
This is not an infrequent issue for me: I have keyboard shortcuts set up to refresh all or selected thumbnails.
* Since I'm working with images, I'm in thumbnail view the whole time. And it's the thumbnail that 'identifies' the file to me more than the name. Here's an example: the files are Beethoven Sym #5 01.psd, Beethoven Sym #5 02.jpg, Beethoven Sym #5 03.tif, etc. The 2-digit number indicates my opinion as to quality. That opinion may change after I have the image in InDesign, my DTP program. So I want to swap the file names to indicate the new ranking. Obviously I wouldn't want the extension to change; I want to change just the 2 digit number (the rank).
-
myrnalarson
- Posts: 68
- Joined: 29 Apr 2011 16:46
Re: Thumbnails not updated after file is renamed
As for klownboy's comment re the safer way, I agree that leaving extension alone is better, given the significance the extension has for the operating system. I would have made 'basename only' the default, rather than the exception that requires a change in the Config file. But obviously, at this time -- i.e. version 20! -- changing the default isn't the way to go
.
He is correct that if the two files have the same extension, this issue doesn't exist.
He is correct that if the two files have the same extension, this issue doesn't exist.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails not updated after file is renamed
I'll find a way to make that optional...
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails not updated after file is renamed
OK, I'm working on this, and it's surprisingly tricky making all Undos, Redos, and tag associations work in all possible constellations. Well, just so you how I spend a rainy day...
But here is a slightly related question that just came up: There is a setting "Exclude extension on rename" (Configuration | General | Sort and Rename | Rename | Exclude extension on rename). IMO this is crassly misnamed because the extension is not excluded on rename but just on preselecting the item to be renamed! Please, English speaking folks out there, give me a better caption for that feature. Something like "Exclude extension from preselection"???
But here is a slightly related question that just came up: There is a setting "Exclude extension on rename" (Configuration | General | Sort and Rename | Rename | Exclude extension on rename). IMO this is crassly misnamed because the extension is not excluded on rename but just on preselecting the item to be renamed! Please, English speaking folks out there, give me a better caption for that feature. Something like "Exclude extension from preselection"???
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnails not updated after file is renamed
I think I go for this:
Exclude file extension from initial selection
Exclude file extension from initial selection
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Thumbnails not updated after file is renamed
Works for me, but it's not really the initial selection. When you initially select the file, the whole name (including extension) is selected. You are really referring to the second click on the file. I'm not positive what that is formally called, but something like the rename or edit selection. No big deal though we get the drift. Thanks by the way, it works great.
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Thumbnails not updated after file is renamed
I wouldn't think you'd have to use that script anymore since Don's latest beta, but it's possible the script may have need some refreshes at certain points after the rename code lines since the script, in your case, is dealing with thumbnails. I discovered in scripts dealing with thumbnails (e.g., Thumbnail Maintenance) that the script zooms along so fast, coupled with the fact that we are in a thumbnail view mode, I had to place some refreshes (CID #1001) and in certain cases, a small wait (e.g., wait 50) along with a refresh for the script to work properly.myrnalarson wrote: ↑22 Sep 2019 20:51 But, again, my problem is with the thumbnail cache not updating. I spent more than an hour looking for a file that was in fact right there where it's supposed to be, but unrecognized by me because of the wrong thumbnail *. Whether the renaming script has anything to do with that, I don't know. It may be completely unrelated.
XYplorer Beta Club