Undo After Move from Search Returns All Files To First File's Directory
Steps to reproduce
- I searched for 'png' to get PNG files in my home directory
- As the search expanded to include subdirectories, I selected my png files but also unintentionally included a source code directory called 'libpng' from a development directory.
- I right clicked-> cut
- Went to my destination folder and right click -> paste
- 'libpng' showed up and I wasn't aware of what project folder it came from, so I went into the top OS menu and selected Edit -> Undo Move
- My PNG files in my home directory were not returned to their home directory.
- Edit -> Redo Move resulted in the error that my PNG files were missing and seemingly deleted.
- I eventually found my files, but they ended up deep in the directories where my unknown 'libpng' originally was.
Reproducible in:
- Other: Ubuntu 16.04 Files 3.14.3
Current behavior
The issue is that 'redo Move' seems to be able to understand where the files came from when in the Search panel, but 'undo Move' moves all files to the first item's directory. It may be that 'libpng' was a directory where the .png were all single files in my home directory.
Expected behavior
Files are returned to their original directories and "undo/redo move" can be done indefinitely.