-
Notifications
You must be signed in to change notification settings - Fork 456
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
Icons & Usability For Links To External Files #1823
Comments
@giuspen I wonder if you might be willing to consider a 'priority bump' for a feature or two in exchange for another contribution, like last time? :) |
Hi @metal450 this task may look not too big but it is a bit of a pandora box because it is the first time that cherrytree would support a non single document format. |
Hi @giuspen, Thanks for the reply. While such a full-featured implementation also sounds great, I had envisioned something a bit different, & much simpler. The intent wasn't really to have a "multi-file database", but to actually have attachments be direct external files - & thus, editable entirely outside of CherryTree via their native editors (i.e. the 4th bullet in the OP). This would of course not support password protection or undo/redo for the attachments themselves, but that's perfectly reasonable - if the user chooses to enable the "store files as links to external files", can simply show a dialog: "Note that if you enable this feature, attachments will be stored outside of CherryTree's database, will not be password-protected, and changes to them will not be tracked by CherryTree's UndoRedo history." I think what you had in mind would solve the "more granular backups" issue, but if attachments somehow still support password protection, that would necessarily preclude the ability to edit them directly (bullet 4). So the intent here was really just as simple as "CT is just a helper to copy files to a directory, & facilitate opening/renaming/deleting them):
Does that make sense? :) |
Edited previous comment slightly (in case u read the email notification copy, instead of above 😄 ) |
What I don't understand is why the already existing links to files cannot be used for the purpose. Links to files relative to the cherrytree document are also supported. Yes you manually have to create a folder where you keep those files but it's already there. Your request may become an improvement of the existing links to files. |
Oooohhh, wasn't even aware that that was an option! Then yeah, seems like it's really just a UI/usability thing :) Currently (from what I can tell), the way to achieve this is to: create the folder (one time setup), then each time we want to attach a file, navigate there with the system file explorer, move the file there, type some text in a note, give that text a hyperlink, then either select the file in the hyperlink dialog & edit the path to remove the prefix (so it's relative), or just manually type the relative path to the filename. Essentially, what I'd hope for is a workflow that's more or less like the current attachment, & to show the files as icons rather than text links:
If I were just to guess, I'd think that quite a few people might just not realize this is an option (I certainly didn't, & I was looking for it! :) ), so this might actually solve the 'big database' issue for many, if it were just a bit more streamlined. So from a usability standpoint, we can interact with attachments just like now, all that really changes is the storage. |
Yes I see the enhancement of the links to files to have dedicated auto generated folder(s) and be kept in synch as for name and removal |
Any possibility of donating for a bump-up/solution of this one too, maybe? 😄 🙏 |
I'll give it a try |
Sweet, much appreciated! |
I would also like to vote for this, if attachments were managed together but external the db, then backup software can version each file individually instead of versioning the entire db. Would be really great for change tracking. |
I think this other approach #2123 would benefit a wider audience and satisfy also this request |
Indeed that would be even better, but it seems like a far, far bigger endeavor of which this is a subset. i.e. isn't this a "prerequisite" of that either way - as that change would require both handling attachments externally (as described here), then in addition, a complete redo to the storage of notes themselves? Thinking of a venn diagram, to me it seems like that feature contains this one. Definitely better, but also much more involved & farther away. |
The introduction of a new Multi-File based data storage may be not too far away actually. I can see the benefits for versioning and for people with large databases who do not care about having all in a single file. I'm thinking about not supporting the password protection for this storage type at least at the beginning |
Yup, having both attachments & content out of the db would be awesome. For me, getting attachments out of the db just seemed as high-value first step :) |
This has been implemented and while still under testing will be in 0.99.56 |
Amazing, can't wait to give it a try!! |
This ticket was resolved, but unfortunately one of the primary motivations seems not to have been addressed (the ability to access attachments outside of CherryTree). Since I can't reopen, I copied forwards those portions of this issue to a follow-up issue: #2354 |
When CherryTree contains many attachments, the ctb file can become pretty enormous. This can make syncing & backups both slow & space-inefficient. Rather than storing attachments as blobs within the database, I'd like to request the option to store them externally. Attaching a file would simply copy it to an /attachments folder next to the .ctb, & the db would contain the path to that file.
This is related to & discussed in #922, but I thought I'd make a distinct request to elaborate & avoid confusing the two.
Advantages:
The text was updated successfully, but these errors were encountered: