Skip to content

Add the option to undo last arrange #33

@prashantsengar

Description

@prashantsengar

If I do a wrong arrange, or due to any other reason, I might want to undo the last arrange.

How to undo
We will have to save the last arrange done. Or maybe all the arranges. A single text document should work as well with two entries.

1. SOURCE_ADDRESS/file1.jpg
2. DESTINATION_ADDRESS/file1.jpg
3. SOURCE_ADDRESS/file2.jpg
4. DESTINATION_ADDRESS/file2.jpg
.
.

This file can be saved at the RESULT_DIR. When someone wants to undo, you will have to ask the user to enter the RESULT_DIR address.

Create a function that takes an argument result_directory and commit an undo.

Also modify the main file to take command line arguments like this

python arrange.py /path/to/result_dir undo

to directly call the undo function.

Todo:

  • Save files
  • Undo function
  • Command line arguments

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions