Search: deleted files are not removed from the visible results unless they are at the top level
If files are trashed by pressing Del from within the search results while a Thunar search is active, they are not removed from the results list despite having been moved to the trashcan. If they happened to have thumbnails, like the PNG files in the attached example, then pressing F5 to refresh the view causes them to be redisplayed with generic icons for the mime type.
I'm using Thunar at 82f397c0. I suspect that all versions supporting recursive search are affected.
Steps to reproduce
Deleting deep files from the results list is not reflected in the list.
- Unpack delete-testcases.7z into a location that supports trash
- Navigate into the
delete-testcases
folder, and start a search for.png
- Trash a few of the result images
- Items are apparently not removed, but they have been moved silently to trash
- Press F5
- Items which were removed are redrawn with generic icons, not thumbs
Deleting toplevel folders is reflected immediately, but their contents still appear in the list
- Unpack delete-testcases.7z into a location that supports trash
- Navigate into the
delete-testcases
folder, and start a search fore
- Delete the folder
deep
, which is a top-level folder- It disappears from the list
- Its contents, ¾ of the files with "e" in their name, do not disappear from the list.
- Press F5
- PNG files which were removed are redrawn with generic icons, not thumbs.
- Sometimes generic icons for binary files, if the ThunarFile wasn't visible before
Expectations
- Files and folder deletions at depth > 0 should be reflected immediately in search results
- Including their contents
- F5 should probably start a new search