johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.88k stars 135 forks source link

`hideWithoutInput` and `miss` properties of `arg` #1468

Open JosXa opened 5 months ago

JosXa commented 5 months ago

These are the behaviors I'd naïvely expect given the names of the config properties, which are otherwise undocumented:

// Expected: The choice is shown as soon as I type **anything**
// Actual: It shows only when the input matches the choice's name ("123").
//         You also cannot submit arbitrary inputs!
await arg('{hideWithoutInput: true}', [{name: '123', hideWithoutInput: true}]);

// Expected: The choice is shown as soon as there is **any** input. 
// Actual: It is shown even when the input is empty.
await arg('{miss: true, hideWithoutInput: true}', [{name: '123', miss: true, hideWithoutInput: true}]);