mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-28 21:09:52 +00:00
Add directory support (#2672)
This commit is contained in:
parent
8a25a89d8f
commit
edb063d85d
4 changed files with 31 additions and 5 deletions
|
@ -12,6 +12,7 @@ Script {
|
|||
property string myText;
|
||||
property int myInt;
|
||||
property string myFile;
|
||||
property string myDirectory;
|
||||
property string mySelection;
|
||||
|
||||
// register your settings variables so the user can set them in the script settings
|
||||
|
@ -56,6 +57,13 @@ Script {
|
|||
"type": "file",
|
||||
"default": "pandoc",
|
||||
},
|
||||
{
|
||||
"identifier": "myDirectory",
|
||||
"name": "I am a directory selector",
|
||||
"description": "Please select the directory:",
|
||||
"type": "directory",
|
||||
"default": "/home",
|
||||
},
|
||||
{
|
||||
"identifier": "mySelection",
|
||||
"name": "I am an item selector",
|
||||
|
@ -80,6 +88,7 @@ Script {
|
|||
script.log(myText);
|
||||
script.log(myInt);
|
||||
script.log(myFile);
|
||||
script.log(myDirectory);
|
||||
script.log(mySelection);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue