macstories / obsidian-shortcut-launcher

Trigger shortcuts in Apple's Shortcuts app from Obsidian with custom commands.
MIT License
187 stars 10 forks source link

`obsidian-shortcut-launcher-temp-input` passed as input to shortcut when no text selected #12

Closed lzilioli closed 8 months ago

lzilioli commented 9 months ago

I have some shortcuts where the input is optional. I want to be able to run it from obsidian against (1) the selected text OR (2) nothing, and have the shortcut prompt me for input in the case if (2).

However, if I select no text and launch the shortcut, my shortcut is invoked with obsidian-shortcut-launcher-temp-input as the input rather than nothing.

lzilioli commented 8 months ago

Hmm, i am now seeing that when no text is selected, the action is not an option. Seems like we can close this.