Global Obsidian QuickAdd Hotkey with AutoHotKey
SOURCE
TIP
UPDATE: A more reliable method is to use the Global Hotkeys plugin for Obsidian.
Overview
This is an AutoHotkey script which unminimizes/focuses Obsidian and sends some keypresses to it.
I’ve bound this to my QuickAdd activation hotkey, so this script automatically brings Obsidian to the front of my screen with QuickAdd open.
Code Snippets
!^+g
is the hotkey to activate the script.
Use CTRL+SHIFT+ALT+G
as the shortcut, both in Obsidian and for the AHK script to activate.
I use a keyboard shortcut to send those keys. Here’s a guide to what the !^+
mean, and how you can customize it: https://www.autohotkey.com/docs/Hotkeys.htm
Update
If you are willing to install the Obsidian Advanced URI
plugin, this script is much easier for you to use.
Simply replace <YOUR_VAULT_NAME>
with the name of your vault.
This version is more reliable, as the other one can fail to activate occasionally.
It uses the same hotkey to activate as above (CTRL+SHIFT+ALT+G
). If you wish to change it:
!
meansAlt
^
meansCtrl
+
meansShift
So, you can replace the !^+g
with any hotkey of your choosing.