zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.37k stars 1.92k forks source link

Collapse/expand large text data #1016

Open DimitriyPro opened 4 years ago

DimitriyPro commented 4 years ago

Could you help me please, I have a large text data and data with images. It could be nice to hide them for prevent "scroll-scroll-scroll". Like this: 2020-05-13_21-17-48

2020-05-13_21-18-20

zadam commented 4 years ago

There aren't collapsible blocks - this would have to be CKEditor feature (editing component).

Standard way to avoid this is to create shorter notes in a tree structure and link between the individual notes ...

DimitriyPro commented 4 years ago

Thank you! But standard way is no so useful. For example if somebody add some notes about Trilium it is more comfortable view it one one page then add multiple pages and link between them.

meichthys commented 4 years ago

I understand what @DimitriyPro is getting at. In onenote with the ability to link to specific paragraphs it was easy (not prudent) to make long notes with links to other paragraphs in the same note. I've learned in Trilium to break down the notes into a tree hierarchy as @zadam mentioned, and i actually like this method better because it gives a better visual outline of what the topic looks like. It also makes it easier to use the Ctrl-J to jump to a specific note.

meichthys commented 4 years ago

Also, @DimitriyPro, have you checked out the option to include a Note in an existing note? This allows you to embed another note within the current note and you can choose how many lines to show. I know it still requires another note to exist, but you could make a note hierarchy, and then on your 'root' note just embed the sub-notes into the root note. It may not be exactly what you're looking for, but its a suggestion 🤷‍♂️: image

DimitriyPro commented 4 years ago

@meichthys thank you for your reply! Trilium and OneNote are both two extremes))) but good software. Spliting notes is the worst practice in the world (see GTD books) - a lot of small notes cause duplicate them with diffrent names (IT humor, funny IT mems etc) and in result becom a collection of unmanageable knowledges. All knowledges should be organized near the kernels with structure. There is a bad practice to create note JavaScript - Notes, JavaScript - Code, JavaScript Books, JavaScript - Sites, JavaScript - ... or if you do some new scientific work and don't now in the begining how to create a structure. I hope Trilium will be in the middle and will have both functions. Your experience relly good and useful - using "jump to note" cool idea and including part of one note into another also cool killing feature. Thank you! I hope I migrate from OneNote to Trilium with your help)))

pihentagy commented 4 years ago

There aren't collapsible blocks - this would have to be CKEditor feature (editing component).

Standard way to avoid this is to create shorter notes in a tree structure and link between the individual notes ...

But html has a solution for that:

<details><summary>Click me</summary> These are the details</details>
Click me These are the details

In other context, it is useful for spoilers (passwords, whatever…)

zadam commented 4 years ago

It still needs to be supported by CKEditor - CKEditor supports editing only a subset of HTML.

meichthys commented 1 year ago

For those interested, here are the relevant issues on ckeditor5. Like the issues to help them get some more attention: https://github.com/ckeditor/ckeditor5/issues/11068 https://github.com/ckeditor/ckeditor5/issues/8457

meichthys commented 1 year ago

Similar issue: #1850