Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trash support #520

Open
garrett opened this issue Jun 6, 2024 · 0 comments
Open

Trash support #520

garrett opened this issue Jun 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@garrett
Copy link
Member

garrett commented Jun 6, 2024

There's an XDG specification for deleting files by moving them to the trash:

https://specifications.freedesktop.org/trash-spec/trashspec-latest.html

Having a trash would also help with undo (#519) for files that have been "deleted", as long as they're not deleted permanently.

Requirements:

  1. Move file to trash location ($XDG_DATA_HOME/Trash/files (home files), $topdir/.Trash/$uid/files (device), or $topdir/.Trash-$uid/files (device fallback) — see spec) and write a metadata file (with original path and time of trashing) in ../info (relative to the files directory)
  2. Provide a way to undo, such as menu entry, keyboard shortcut, and possibly a toast (see Undo support #519)
  3. We'd also need a global action to "Empty trash"
  4. Possibly also a way to view the trash? (Nautilus has this and it's unified across home and devices. In other words, it's viewed as one trash. It also has a contextual banner to empty the trash when viewing it.)
@garrett garrett added the enhancement New feature or request label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant