Closed lunatic-gh closed 3 months ago
item(title='Blank File' image=\uE10E cmd=io.file.create('blank', null, true))
or
item(title='New File' image=\uE10E cmd=if(input("Nilesoft Shell","new file name...")==1, io.file.create(input.result), msg('no input')))
Awesome, thanks!
Additionally, is there any information specifically about what "commands" exist, like for example io.file.create()
, or are those taken from some specific lang (dotnet or smt)? Because i couldn't find any info about this on the wiki, but maybe i was just blind?
NVM, found exactly this on the wiki under "functions". Thanks!
I'm wondering... If i use
io.directory.create("SomeName")
, it will open a prompt asking for the name (whereSomeName
is the default input). Is there something like this for files as well? I'm asking because the default context menu does exactly this for both folders and files, while usingio.file.create("SomeName")
does not open a a prompt at all.