Comments (10)
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.
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.
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.
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.
Ah okay I understand. But how should I return the info? I don't think the url can return data.
from obsidian-advanced-uri.
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.
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.
Wow! That's great! Maybe just zero or one? 1
if file exists, 0
if file not exists?
from obsidian-advanced-uri.
Available in new release!
from obsidian-advanced-uri.
@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)
- FR: add a "copy URI to current note/block/headings" /w vault's name empty, for working with 2 same name vaults. HOT 2
- Advanced URI fails to load on ChromeOS HOT 1
- Add toggle command to enable and disable commands for plugins HOT 3
- Is it possible to send data without bringing Obsidian to the foreground? HOT 1
- Is it possible to daisy chain commands together? HOT 4
- Silent mode seems not working properly.
- Heading not found HOT 2
- will heading add support for multi headers? HOT 3
- Bug? Using your plugin to trigger a command worked, now opens a new instance of Obsidian, but that in that new instance the command works? HOT 5
- Would it be possible to have URIs for any section in settings? HOT 10
- Bug: Intermittent error on 'copy-uri-block' HOT 1
- Feature Request: allow for creating commands to open specific URIs HOT 2
- [REQUEST]: jump to a folder? HOT 14
- FR: `eval` URI to run arbitrary command HOT 5
- FR: openmode New Window HOT 4
- Please add a LICENSE file HOT 1
- Open file in a new tab HOT 11
- Copy adv. URI from current file (excalidraw), without switching to markdown mode HOT 3
- Feature request: Do not reopen a file already opened in another tab
- Support to create an URI to open daily note adding an empty line at the end and setting cursor.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-advanced-uri.