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

feat: Open note without data? #9

Closed
ankushg opened this issue Apr 28, 2021 · 1 comment
Closed

feat: Open note without data? #9

ankushg opened this issue Apr 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ankushg
Copy link

ankushg commented Apr 28, 2021

It would be really nice if specifying a filepath but no data would just open the given path.

I'm building some iOS Shortcuts to automate some flows, and I'd love to rely only on obsidian-advanced-uri instead of switching between this and the official open action depending on whether or not I have data

Right now it looks like this case is ignored by registerObsidianProtocolHandler, when it can probably just be implemented with this.app.workspace.openLinkText(parameters.filepath, "");

A nice-to-have would be if the cursor were at the appropriate position based on mode=append or mode=prepend

@Vinzent03
Copy link
Owner

Yeah I didn't add it, because it's covered by the official open action, but I see your wish to stay with one action. I like the idea with mode=append and mode=prepend.

@Vinzent03 Vinzent03 added the enhancement New feature or request label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants