From 8bef1e67d986203884d30c0cf1b30b82cec7ea49 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Fri, 7 Mar 2025 11:06:39 +0800 Subject: [PATCH] vault backup: 2025-03-07 11:06:39 --- 22.01. 軟體工具、設定/Obisidian.md | 39 ++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/22.01. 軟體工具、設定/Obisidian.md b/22.01. 軟體工具、設定/Obisidian.md index ab98b84..2ae8c15 100644 --- a/22.01. 軟體工具、設定/Obisidian.md +++ b/22.01. 軟體工具、設定/Obisidian.md @@ -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. - Let `` is the name of vault you wan to open. Command: ``` obsidian://adv-uri?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