Option to remove attachments that are no longer linked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
In Progress
|
Wishlist
|
Unassigned | ||
Bug Description
In Zim 0.27 files that are attached stay there. It would be nice that if all links to those files are gone, the file would be automatically removed or transferred into some kind of wastebin thingy.
---
Current state of Discussion:
* The clean notebook function patch is now of less use.
(zim files are cached and hidden)
* A linked files index is needed to:
* Optionally delete files / directories becoming unlinked.
* Mark unlinked files in the attachment (file) browser and
provide option to delete (unlinked or individual) files.
Example question when deleting a page:
(for behavior see discussion)
Also delete?:
[] all sub-pages
[] all files becoming unlinked.
(show checkbox list with individual files derived from the index)
[] all files stored under this directory
(show list of files as in zim 0.5, with individual checkboxes)
Changed in zim: | |
status: | New → Incomplete |
importance: | Undecided → Wishlist |
summary: |
- [Request] files without links should be removed + [zim 0.28] files without links should be removed |
Changed in zim: | |
assignee: | nobody → smu (smu) |
Changed in zim: | |
status: | Confirmed → In Progress |
summary: |
- Files without links should be removed + offer to delete files becoming unlinked & del option in attachment + (file) browser |
summary: |
- offer to delete files becoming unlinked & del option in attachment + optionally delete files becoming unlinked & del option in attachment (file) browser |
summary: |
- optionally delete files becoming unlinked & del option in attachment - (file) browser + linked files index, optionally delete files becoming unlinked & del + option in attachment (file) browser |
description: | updated |
description: | updated |
Changed in zim: | |
assignee: | smu (smu) → nobody |
I think I disagree if I understand the bug correctly. I have several pages that I treat as top level and don't necessarily have anything linking to them. I also like Zim's directory structure (it gives one and idea to have your personal file system entirely wiki-ised in a sense, to add notes about what things are) and I and don't think I want zim automatically deleting things or moving them. A checkbox for other people to activate this feature won't bother me though of course.