Things I have tried
searching forum
What I’m trying to do
open an existing file in obsidian from a shell script, but have it open as a new tab, not replace an already open tab
I have this script that I pass a filename to
FILE1="$@"
FILE2=basename "$FILE1"
FILE3=echo "$FILE2" | sed 's/\.md//'
VAULT1=cat /home/$USER/.myWikiPath.txt
VAULT2=basename "$VAULT1"
xdg-open “obsidian://open?vault=${VAULT2}&file=${FILE3}”
This works fine in the sense that the file does open in Obsidian, but it does so at the expense of whatever other file is open.
How do I tell it to open as a new tab instead of replacing the last active tab?
thanks,