imsnif / diskonaut

Terminal disk space navigator 🔭
MIT License
2.48k stars 66 forks source link

Feature: transactional delete #6

Open imsnif opened 4 years ago

imsnif commented 4 years ago

This feature would allow the user to do a "soft delete". Meaning they would mark a file for deletion, it would disappear from the UI but will not actually be deleted from the filesystem.

When the user exits the app, the app should give a list of these files marked for deletion and ask the user if they want to delete them.

Optionally, a "delete marked files" shortcut can also be added.

qballer commented 4 years ago

Another option is to not delete it from the UI and just color code it some how. When ready, you can execute the transaction.

imsnif commented 4 years ago

Color coding it is interesting... how would you go about color coding all the parent folders though?

qballer commented 4 years ago

One color for the actual files and folders to delete (red?) and color code with another the folders impacted up the tree (purple?)

imsnif commented 4 years ago

I think we can start with a transactional delete and then see where the usability takes us regarding colors and such.

kevin-stuart commented 2 years ago

Maybe a mode that does not delete at all wout be the smartest thing, diskonaut then only only counts the size in the session, and exiting it outputs the list of files. This could then be piped into another script that does deletion or other things like moving/archiving.