Hey,
i have found a way to combine ULauncher, an alternative to Alfred for Linux, to help me quick capture my thoughts into my daily note.
Demo
Requirements
Instructions
Obsidian
- Install the Obsidian Advanced URI plugin and enable it.
- Edit the plugins options to your liking.
ULauncher
- Go into the ULauncher Settings
- Go to the Shortcuts Tab
- Click Add Shortcut
- Choose a Name and Keyword
- Copy the script below and replace <VAULT_NAME> with your Vaults name
#!/usr/bin/env python
import os
import urllib.parse
import sys
vault_name = "<VAULT_NAME>"
args = sys.argv[1:]
text = ' '.join(args)
content = urllib.parse.quote(str(text))
vault = urllib.parse.quote(str(vault_name))
uri = f"\"obsidian://advanced-uri?vault={vault}&daily=true&data=-%20{content}&mode=append\""
os.system('xdg-open ' + uri)
- Click Save and it should work.
Hope i could help someone.