Open wednes78 opened 1 year ago
Hi @wednes78
Do you mean when your editor is presenting file A, then you click canvas B in the "Canvas the file embedded" view, the editor will jump to canvas B and focus on file A in canvas B?
If yes, I am sorry to tell you that I have tried to implement this feature in early time, but I didn't find any [API] to get the Node in Canvas nor any API to focus on the cards. I guess it is because the Canvas feature is not published for so long and we should expect the Obsidian team to update Canvas API in the future.
I will keep this feature request open and keep you posted once it is implemented. Thank you for your suggestion, it's very enlightening. and welcome to comment there if you find anything helpful.
I understood.
I hope the obsidian dev team would update.
Thank you for responding to my request.
Here is a case with canvas.zoomToBbox
https://github.com/whacked/obsidian-relevance-engine/blob/2023-01_get-something-working/main.ts#L249
Here is a case with canvas.zoomToSelection
https://github.com/search?q=repo%3AQuorafind%2FObsidian-Canvas-Presentation%20zoom&type=code
The code const nodes = JSON.parse(content).nodes
gives x, y, height, width
https://github.com/Quorafind/Obsidian-Canvas-Block-Reference is interesting
Describe the feature
Your plug-in is what I have wanted. it’s so useful.
I would appreciate it if the plugin could include a feature where clicking a back-link in the view redirects to the canvas and focuses on the corresponding file.
The Problem that the feature solves
Solution you've considered
Additional information