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

Add 'semantic blocks' #319

Closed
lbgws2 opened this issue Jan 10, 2019 · 4 comments
Closed

Add 'semantic blocks' #319

lbgws2 opened this issue Jan 10, 2019 · 4 comments

Comments

@lbgws2
Copy link

lbgws2 commented Jan 10, 2019

can you create a "block". Contains rich text types such as text or images. This block can be named, labeled, and has its own independent address. This sounds like a note, but I have several reasons to use it

  1. Many times, some clips don't have to create a note, too many children note look very messy and need to jump
  2. Some concepts or introductions are composed of paragraphs, which can well identify the starting and ending positions.
  3. Text and images are organized into blocks, which can be easily selected or moved
  4. Accurate search results
    Search engines or elasticsearch are not optimized for this type, resulting in inaccurate search results. Search notes are based on keywords, and when there is no corresponding keyword in the text, it is easy to miss this note.
    For example, my note is South_China_Sea, I can create a label for "Resources", which contains related introductions. I also have a note for East_China_Sea, also create a "resource" tag, so when I search for "resources", Will give two notes and can be positioned to the correct location (or the corresponding result in the search page) instead of returning two complete documents
  5. Mark some notes
    For example, when making a study note, label some paragraphs with "excellent" labels, or write a book review, or add some pictures, without destroying the original text

In addition, I hope to create a shortcut for the tag, which can write with a markdown-like syntax, such as /tag. If you can add tags in batches, that would be great.

I think I may not express it clearly,there is an website name Notion(https://www.notion.so) ,I think you might be interested
Here is its introduction
https://www.keepproductive.com/blog/notion-for-beginners

PS: I want to label the above text with "suggestion" :)

@zadam
Copy link
Owner

zadam commented Jan 10, 2019

I'm not against some kind of structure inside text note, but this is kind of no-go since for the editing component I'm almost completely reliant on what features CKEditor provides and this would obviously need some major changes. But I'm watching its development and try to leverage new features when appropriate.

In addition, I hope to create a shortcut for the tag, which can write with a markdown-like syntax, such as /tag. If you can add tags in batches, that would be great.

This something I keep thinking about - I'm aware that the current approach is pretty clumsy for basic use case (simple tagging with optional value). I'm not sure what approach to take but I'd like to avoid direct entering labels into the text (e.g. instagram style). One possible way would be a keyboard shortcut which would bring up simple dialog with an input where you could enter multiple tags (e.g. "@book @year=2018 @Genre=scifi", hit enter and that's it.

@lbgws2
Copy link
Author

lbgws2 commented Jan 11, 2019

Can you create a JavaScript code notes to implement it?

@jtraub
Copy link

jtraub commented Jan 19, 2019

this would obviously need some major changes

Is it hard to just render independent ckeditor instances for each block?

@meichthys
Copy link
Collaborator

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext/Notes#83

@meichthys meichthys closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants