vault backup: 2025-03-07 11:06:39

This commit is contained in:
2025-03-07 11:06:39 +08:00
parent 798003f093
commit 8bef1e67d9

View File

@@ -268,16 +268,51 @@ a.external-link {
} }
``` ```
# 命令 # 命令打開指定的 vault
Use [Advanced URI](https://publish.obsidian.md/advanced-uri-doc/Home) commadn to open Obsidian with specific vault. Use [Advanced URI](https://publish.obsidian.md/advanced-uri-doc/Home) commadn to open Obsidian with specific vault.
Let `<your-vault>` is the name of vault you wan to open. Let `<your-vault>` is the name of vault you wan to open.
Command: Command:
``` ```
obsidian://adv-uri?vault=<your-vault> obsidian://adv-uri?vault=<your-vault>
``` ```
## Launch URL
### Browser 
You can simply enter the URI into the search bar. It will ask you to confirm the execution.
### Link in Obsidian 
You can launch an Obsidian URI from Obsidian itself. Because `obsidian://` is a more custom protocol, it doesn't recognize it as a link directly. To fix this, wrap it in a markdown link.
```md
[This here is shown](obsidian://adv-uri?filepath=Home%20Index%2Ftoday)
```
### Terminal 
#### Linux 
```bash
xdg-open "obsidian://adv-uri?filepath=Home%20Index%2Ftoday"
```
#### Mac 
Use the Mac shell command `open` to launch Obsidian, and with `--background` let Obsidian run in background.
```bash
open --background "obsidian://adv-uri?vault=my-vault&filename=my-file&data=my-data"
```
#### Windows PowerShell 
Use the PowerShell command `Start-Process` to launch an Obsidian URI.
```bash
Start-Process "obsidian://adv-uri?filepath=test"
```
# References # References