-
-
Notifications
You must be signed in to change notification settings - Fork 149
Description
I have a script that lists my projects with the ability to open them in multiple places using CMD+K actions.
In my case, the actions are built dynamically based on the projects I fetch from an external resource, so I create them as part of arg({choices[x].actions}).
-
The first problem appears with the shortcuts, which do not work by default until you open the actions with
CMD+Kfor the first time. After that, you can trigger an action with a hotkey without opening the actions menu. This also works fine when defining actions as the 3rd argument ofarg(which lacks the ability to build actions based on the choice data). -
I'm not sure if this is a bug or a feature request. The fuzzy search inside the actions is not working correctly. For example, it fails to find
git*orci*.
Script example
// Name: action bug test
import "@johnlindquist/kit";
await arg({
choices: [
{
name: "First",
value: "first",
actions: [
{
name: "Open in github",
shortcut: "cmd+g",
async onAction() {
console.log("Opening git.");
},
},
{
name: "Open in circleci",
shortcut: "cmd+c",
async onAction() {
console.log("Opening circleci.");
},
},
],
},
],
});CleanShot.2025-08-14.at.19.27.18.mp4
PS: I am using ScriptKit 3.45.1