Add a quick-access button in the top toolbar #5

Open
opened 2025-04-06 12:37:26 +00:00 by wenbocn · 2 comments

I’d actually prefer if you could add a button to the top bar. When an SVG image is selected, clicking the button opens to draw; if no SVG is selected, clicking the button creates a new one. Thank you!

I’d actually prefer if you could add a button to the top bar. When an SVG image is selected, clicking the button opens to draw; if no SVG is selected, clicking the button creates a new one. Thank you!
massivebox added this to the QoL project 2025-04-06 14:03:32 +00:00
Owner

Hello again!

I have started working on this feature in commit d34258e6bf.

So far, I've added a top-bar button and a shortcut (ALT+SHIFT+D by default, but you can customize it in SiYuan settings) to directly open the editor when a whiteboard has been selected by left-clicking on it.
This saves the users from having to open and navigate the image menu, which can be cumbersome.

In the future, I will add a way to make it so that the same button or shortcut also creates a new image in the doc, if a whiteboard is not currently selected. Unfortunately, I'm very busy in this period, so it may take a bit.

If you want to try the feature as it is now, you can download the build from here. Its stability is not guaranteed, but it should be fine. If you try it, let me know if it works well!

Hello again! I have started working on this feature in commit https://git.massive.box/massivebox/siyuan-jsdraw-plugin/commit/d34258e6bf825d1f525a4c05d3067597661a3e9b. So far, I've added a top-bar button and a shortcut (ALT+SHIFT+D by default, but you can customize it in SiYuan settings) to directly open the editor when a whiteboard has been selected by left-clicking on it. This saves the users from having to open and navigate the image menu, which can be cumbersome. In the future, I will add a way to make it so that the same button or shortcut also creates a new image in the doc, if a whiteboard is not currently selected. Unfortunately, I'm very busy in this period, so it may take a bit. If you want to try the feature as it is now, you can download the build from [here](https://git.massive.box/massivebox/siyuan-jsdraw-plugin/actions/runs/13/artifacts/artifact). Its stability is not guaranteed, but it should be fine. If you try it, let me know if it works well!
Author

The current version works just fine for me, so I'll skip the beta testing for stability's sake. I'll wait for the official release before updating. Really appreciate all your hard work!

By the way (this is a bit embarrassing), I'm not entirely sure how to download this version.

The current version works just fine for me, so I'll skip the beta testing for stability's sake. I'll wait for the official release before updating. Really appreciate all your hard work! By the way (this is a bit embarrassing), I'm not entirely sure how to download this version.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: massivebox/siyuan-jsdraw-plugin#5
No description provided.