-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
New note type canvas-note
using excalidraw (hand drawn notes, sketching, pen)
#2798
Conversation
onCollabButtonClick: () => { | ||
window.alert("You clicked on collab button") | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to outright remove the collab button? It might be more helpful to say something like "Collaboration disabled within Trilium" if not, rather than just "you clicked it".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure. I think it would be good to disable some buttons and stuff. It is not possible via configuration, I think. We could hide them via CSS maybe, which is quite hacky.
Now, when I think about it, the Collab button could be used to enable shareing? Or maybe we can open a box that shows all the links to embed the canvas-note (api/image..., share/api/image...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The collab button can be used to actually collaborate; it is a pretty small server. I'm not sure if it's in scope though (probably not) but it would be pretty cool.
Regardless the error message could be changed to something a bit more descriptive in case someone sees that and thinks it is enabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the near term it would be nice to hide such buttons, with CSS if needed. But it's not a blocker.
This is awesome. Can't wait for this to be merged. A few questions:
|
It does render the view mode. I got heavily inspired by the screenshot of your code (#2328 (comment)) . What is missing, is the correct placement with the css and the flex attributes. Maybe you can give a hand there?
It is embedded via link, so yes (image must be reloaded after a change, of course). What I still need is embedding a canvas-note in another canvas-note via link. I think that would be fun. Or, more generally speaking, embedding images into canvas-note via link. Since we store the svg in the canvas-note, it should be possible to handle this in the same way. See also: https://github.com/zadam/trilium/pull/2798/files#diff-bd7fd937c20ac950412e1e84c91ca7a6c36694eaa9de924f9862c1edcc21a887R237 |
Conflicts: src/public/app/services/library_loader.js src/public/app/services/tree_context_menu.js src/public/app/widgets/note_actions.js src/services/consistency_checks.js src/services/utils.js
Conflicts: src/public/app/entities/note_short.js src/public/app/services/tree_context_menu.js
due to some upstream changes, this was necessary. otherwise complete inside container was not visible.
@zadam I worked on all issues. Except for 3, where I have open questions. The others, I fixed and marked the conversation as resolved (not sure, if that is how you guys do it with github though). How do you want to proceed? |
@thfrei great, thanks for the fast turnaround. Where are those 3 items with open questions? Somehow I don't see any ... |
Yeah, it is quite confusing with this PR. I think they disappeared, because I changed the filename from If you click on Conversations, you can see them:
|
@thfrei I see, I think that was a misunderstanding. I thought you had some questions which you wrote into those unresolved conversations ... |
I left them, so that you can decide how to proceed:
|
🎆 |
I'm a very heavy user of both Trilium and Excalidraw, and seeing the two of them being combined like that is a dream I never knew I had come true! Thank you very much! The navigation between multiple drawings is so easy now, it's awesome! |
Thank you for your kind words capi. I'm really glad you like it. I never thought of it that way, but you are right, even if you would not use trilium for notes, having like kind of a "file-browser" for different excalidraw drawings is a win :-) |
Thanks for this feature. Really amazing. I knew of Trilium but didn't use it as the draw feature was missing. I have installed the latest 0.52.3 on windows but could not find a way to make a Canvas notes. When I click the '+' sign, as a new note, I don't get an option to add Canvas/Excalidraw You may also want to check out: https://www.youtube.com/watch?v=o0exK-xFP3k . They are doing some amazing work with Obsidian and I think many will be more comfortable with an open-source program like Trilium over Obsidian. |
@zadam When I think about it, it might be nice to have an attribute that defines the type of child notes. Like so: @4abhinavjain Another option:
I exported the notes into the attached zip. (uncheck safe import, since it contains a js backend note): PS: the title of the notes does not matter in the end, just the relation. |
New Features:
canvas-note
Allows basic sketching and hand-drawn notesnode_modules
folder (is this secure?)ToDo:
Suggestion for Roadmap for next PR (not doing right now):
Related to:
canvas-note
#1135Impressions: