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

Canvas navigation command [Feature request] #177

Closed
shin0kaze opened this issue Jun 25, 2024 · 4 comments
Closed

Canvas navigation command [Feature request] #177

shin0kaze opened this issue Jun 25, 2024 · 4 comments

Comments

@shin0kaze
Copy link

Hi.

Can you add a command that will open canvas and focus a card by id or using canvas.zoomToBbox(minX, minY, maxX, maxY)?

Because, for now there is no simple way to navigate on a large canvas, this feature would be incredible.

@Vinzent03
Copy link
Owner

What is your use case for this feature? Like how do you get the node id in your flow?

@shin0kaze
Copy link
Author

The problem in the current obsidian version is that when you work with canvas nodes, you cannot have links between them. That becomes a problem when you need a link to a specific node in Canvas. Also, there are big canvases where some nodes mention others.

Considering the above, my use case is creating links in nodes like that:
obsidian://advanced-uri?vault=<your-vault>&filepath=my-canvas-file&canvasnode=<node-id-in-canvas>
Or if I need a link to a good canvas view:
obsidian://advanced-uri?vault=<your-vault>&filepath=my-canvas-file&canvascoords=100,100,500,500

Then I can easily navigate between nodes and canvases.

@shin0kaze
Copy link
Author

I would try to make a pull request, but cannot get how to move focus and view in canvas tab after opening a file.

@Vinzent03
Copy link
Owner

Available now in 1.42.0 🎉 The usage is documented here https://publish.obsidian.md/advanced-uri-doc/Actions/Canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants