macstories / obsidian-shortcut-launcher

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

Feature request: New Input: None #6

Open TheMathGuyd opened 2 years ago

TheMathGuyd commented 2 years ago

In some cases, apple shortcuts are useful with no inputs needed from obsidian. Because obsidian captures all typical keyboard shortcuts (even those that might be used to trigger an Apple Shortcut), it would be useful to create an equivalent trigger command inside of obsidian using this plugin, even if no information is needed from obsidian itself.

This would fix one large problem: It is currently impossible to trigger a shortcut in this plugin when no file is open in obsidian. The command palette does not show the option, because it is only expecting the user to need the command when a file is open,

lzilioli commented 7 months ago

I have another use case for this. I have some shortcuts where the input is optional. I want to be able to run them from obsidian against (1) the selected text OR (2) nothing, and have the shortcut prompt me for input in the case of (2). I ran into #12 while trying to do this, and my workaround was going to be to pass nothing to the shortcut and copy/paste anything from my note that I want in the document, but since there is no "None" input, that is not currently possible.