In user interfaces with any kind of toggleable or overlapping views, what is a good way to handle undo when the effect of undoing is not visible?
For instance, in OS X Finder, if a user renames a file or folder, then close the window, they can still press cmd+Z to undo, without any feedback that the filename was reverted. This is possible even days after the item was renamed, if no other action was performed in between. This behaviour seems very error prone.
What strategies exist to show the user the effect of undo in such cases?