Giter Club home page Giter Club logo

Comments (10)

Vinzent03 avatar Vinzent03 commented on June 27, 2024 1

It should be clear from the documentation in the README, but an example would be obsidian://advanced-uri?vault=myVault&filepath=my-file&exists=true

from obsidian-advanced-uri.

FelipeRearden avatar FelipeRearden commented on June 27, 2024 1

Thank you @Vinzent03 !

Now I get it with your example!

If the file exists in the vault the value 1 is copied to the clipboard;
if not 0 is copied to the clipboard.

Thanks again!

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 27, 2024

I guess, a better solution for your problem is a new mode to append if the file exists and write if not.

from obsidian-advanced-uri.

VKondakoff avatar VKondakoff commented on June 27, 2024

Thanks for your answer.
There is usually different data for writing/appending depending of the file existence. For example: if file does not exist write header, some tags and links and some data. If file exists already, just append some new data.
So, checking for existence is needed to decide which data to write/append.

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 27, 2024

Ah okay I understand. But how should I return the info? I don't think the url can return data.

from obsidian-advanced-uri.

VKondakoff avatar VKondakoff commented on June 27, 2024

Ah… I was hoping there are some responses, like in Get, which is used to access the APIs: https://support.apple.com/en-in/guide/shortcuts/apd58d46713f/ios

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 27, 2024

No that's not possible. A way would be to copy the result to clipboard. Would that be ok? What value would you prefer?

from obsidian-advanced-uri.

VKondakoff avatar VKondakoff commented on June 27, 2024

Wow! That's great! Maybe just zero or one? 1 if file exists, 0 if file not exists?

from obsidian-advanced-uri.

Vinzent03 avatar Vinzent03 commented on June 27, 2024

Available in new release!

from obsidian-advanced-uri.

FelipeRearden avatar FelipeRearden commented on June 27, 2024

@Vinzent03 and @VKondakoff !

Would you mind sharing an URI as an example for this new feature ? I wanna learn how to use :)

Thanks and have a great day :)

from obsidian-advanced-uri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.