Page 1 of 1

Tag DB doesn't change when undoing a renameitem()?

Posted: 15 Aug 2025 08:54
by highend
I use these settings in a fresh; current x32 beta:

Code: Select all

Configuration | General | Startup & Exit | Save Settings | [x] Save changes to disk immediately
Configuration | General | Startup & Exit | Save Settings | Apply to... | [x] Tags

Configuration | Information | Tags | [x] Copy tags on backup and sync operations
I use this test structure:

Code: Select all

C:\Temp\new\sub1\sub2\PS
C:\Temp\new\sub1\sub2\PowerShell

The PS folder is just for the second test, it is absolutely empty
The PowerShell folder contains a few files and subfolders with files as well
I've tagged two files there (one in the PowerShell folder itself, one in the first subfolder of it)
Now I execute this script:

Code: Select all

moveto "C:\Temp\new", "C:\Temp\new\sub1\sub2\PowerShell", , , 2, 5, 1, 0, 0, 1, 3, 0;
It moves the PowerShell folder up the hierarchy.

The tag db reflects that change immediately and when I undo the operation (button in the toolbar) the PowerShell folder is moved back into its original position and the tag db again reflects that operation just fine.

Now I execute this:

Code: Select all

$newName = renameitem("PS", "C:\Temp\new\sub1\sub2\PowerShell", , "-00001");
This renames the PowerShell folder into PS-00001 and again, the tag db reflects that change just fine.

When I now undo the operation the PS-00001 is renamed back to PowerShell again BUT the tag.db will NOT reflect this change!
This is the state after the undo operation:

Code: Select all

C:\Temp\new\sub1\sub2\PS-00001\!Which PowerShell version on which OS.txt|0|abc|||||||||||||||||
C:\Temp\new\sub1\sub2\PS-00001\#CMDlets\@Homepage [PowerShell gallery].url|0|def|||||||||||||||||
Is this a bug or by design?

Re: Tag DB doesn't change when undoing a renameitem()?

Posted: 15 Aug 2025 13:33
by admin
Bug :bug: confirmed. :tup: But I think the issue was much more general: After renaming a tagged folder, selecting Undo did not update the tags database (not even in memory).

Re: Tag DB doesn't change when undoing a renameitem()?

Posted: 16 Aug 2025 12:08
by highend
Yeah, it was broken for a normal gui rename operation as well, confirmed fixed for x32 with v27.10.0501 :tup: