Repository navigation
[Feature]: Pass text input to Apple Shortcuts from the launcher #1901
Unanswered
xpepper
asked this question in
Feature Requests, Ideas
Replies: 1 comment
|
Thanks for opening this! Tinycast stays small and focused, so new features are chosen Tip Planning to build this? Discussing the approach here first is highly preferred. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What should it do?
Let the launcher pass text input to an Apple Shortcut.
Selecting an Apple Shortcuts row would show one optional Input field beside the search field, the same inline field custom commands use. Text typed there is passed to the shortcut as its input (
shortcuts run <uuid> --input-path -, text on stdin). Left blank, the shortcut runs exactly as it does today.shortcuts listnor any public API says which shortcuts read input.argumentsorfallbackTextfills the same field, as for quicklinks and custom commands.Why does it belong in Tinycast?
Shortcuts that take input fail from the launcher today. Mine takes
on,offor a number of minutes. Run from Tinycast it receives nothing, shows its own "No input provided" message, and Tinycast then reports "Couldn't Run". There's no way to supply the value, short of wrapping each shortcut in a quicklink with ashortcuts://URL.I hit this moving over from Raycast, where the same shortcut asks for its input. Tinycast already keeps Raycast's arguments for the script commands it imports and the extensions it runs, and quicklinks and custom commands take inline values too. Apple Shortcuts are the exception, so a Raycast workflow that relied on them breaks after the switch.
Running shortcuts is already a Tinycast feature, and this makes it work for shortcuts that take input. It reuses pieces Tinycast already has: the inline argument field,
ToolRunner, and the deeplink field filling. It adds no settings, no stored state and no new permission.Contribution
approvedAll reactions