Lightroom: Undo moving pictures

  • 1
  • Problem
  • Updated 11 months ago
  • (Edited)
It's not currently possible to "undo" moving pictures from one folder to another. Since this is a recordable and nondestructive process, it should easily be undoable.
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes

Posted 1 year ago

  • 1
Photo of Cletus Lee

Cletus Lee

  • 88 Posts
  • 20 Reply Likes
Moving files is a filesystem process. LR must use the filesystem to facilitate the process.  The file system does not allow "undo"  The only thing LR could do is move back.  IMO this would require an unreasonable and unnecessary overhead to track files moves.
Photo of Robert Lambert

Robert Lambert

  • 1 Post
  • 0 Reply Likes
"unnecessary; It is not, master file-system time you shall! You WILL!"  - Master Yoda
(Edited)
Photo of Paul Plak

Paul Plak

  • 138 Posts
  • 19 Reply Likes
Moving a file around is not just a database operation, like most other operations that happen solely inside LR. Undoing it really requires a lot of code, and no one can be sure the file will not have been moved again outside LR when you try to undo it.
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes
This is true also if the file hasn't been moved. In other words, a file can *always* get moved or become inaccessible at some point. And Lightroom has a flag for that as well.

So, undoing a file move is actually quite simple. Move it back on the filesystem as well. If it's not possible for whatever reason, display a message, and mark the moved-back file as inaccessible. At least the undo has then been performed while all edits are preserved.
(Edited)
Photo of John R. Ellis

John R. Ellis, Champion

  • 3386 Posts
  • 854 Reply Likes
Note that both Windows File Explorer and Mac Finder support undo of moving files.
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes
That only works if you also use Explorer to move the file in the first place. A file move executed by an application is not magically injected into Explorer's undo history.

On top of that, undoing the file move in Explorer (hypothetically! because as I said this isn't possible) doesn't magically move it back in Lightroom. Lightroom would see it as a totally new file and all edits will be lost.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3386 Posts
  • 854 Reply Likes
I agree.  I neglected to elaborate on my comment, which was intended to support your position.

I cited the examples of Explorer and Finder to show that it's straightforward for applications to provide undo of file move (as other applications also provide, e.g. the Photoshop Elements Organizer, at least as of PSE 8).  

If LR provided undo of move, it wouldn't impose any more overhead than is already imposed on every other batch operation in LR (e.g. changing the keyword on thousands of pics at once).  LR's implementation already has an undo log with an architecture designed to support undo of diverse commands; the move operation would do as all other commands do, writing an entry into the undo log with the detailed information required to undo the move.  
Photo of Michel BRETECHER

Michel BRETECHER, Champion

  • 983 Posts
  • 191 Reply Likes
" e.g. the Photoshop Elements Organizer, at least as of PSE 8).  "
... and in all uterior Elements versions ...