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

mode=open for Writing Action #88

Closed
jandamm opened this issue Nov 3, 2022 · 3 comments
Closed

mode=open for Writing Action #88

jandamm opened this issue Nov 3, 2022 · 3 comments

Comments

@jandamm
Copy link

jandamm commented Nov 3, 2022

I would like to have a mode=open for the write action.

I have written a little script to create a note for a given calendar entry.
In the end it calls obsidian://advanced-uri?vault={Vault}&filepath={Filename}&data={Encoded Content}&mode=write.

This works all fine unless the file already exists. I don't want to create a new file (mode=new) but instead just open the existing file. write does just show a notification that the file already exists.

Would be really nice if this could be added 🙂

@Vinzent03
Copy link
Owner

What about always opening the existing file instead of adding a new parameter?

@jandamm
Copy link
Author

jandamm commented Nov 3, 2022

I'm not sure this helps.

A) File does not exist -> create new file with name and content

B) File does exist -> don't create a new file AND open the file

Currently I use the default mode which (write) where A works but doesn't open the file in case B.

@jandamm
Copy link
Author

jandamm commented Nov 10, 2022

Thank you.
Now it works as expected 👍

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