quickadd
quickadd copied to clipboard
Documentation for user scripts
Hi, i am starting to thinker with this plugin and found out about the user scripts that i would like to use. Is there any docs i can follow to undesrand how to configure options and what is the possibilities i have with scripts?
For example reading the provided scripts i can see :
module.exports = {
entry: start,
settings: {
name: "Movie Script",
author: "Christian B. B. Houmann",
options: {
[API_KEY_OPTION]: {
type: "text",
defaultValue: "",
placeholder: "OMDb API Key",
},
},
},
};
or
module.exports = {
entry: start,
settings: {
name: "Citations Manager",
author: "Christian B. B. Houmann",
options: {
"Ignore empty values": {
type: "toggle",
defaultValue: true,
},
},
}
}
how can i define options in my scripts?
thanks