Shell icon indicating copy to clipboard operation
Shell copied to clipboard

Create blank file focus issue

Open DanRotaru opened this issue 1 year ago • 3 comments

While creating new folder I can edit folder name instantly, but while creating new file I need to edit file name by myself. Check video below for more details.

Create new file: item(title='Create blank file' cmd=io.file.create('zfile', '') image=\uE10E)

Create new folder: item(title='Create folder' cmd=io.dir.create(sys.datetime("ymdHMSs")) image=\uE0E7)

Video: https://github.com/moudey/Shell/assets/7759507/df41e32e-3bf5-4f9a-b21a-1529456155b1

DanRotaru avatar Jan 07 '24 19:01 DanRotaru

Add a third parameter and set it to true

item(title='Create blank file' cmd=io.file.create('zfile', null, true) image=\uE10E)

moudey avatar Jan 07 '24 20:01 moudey

Thank you. But how I would know that :) By official documentation io.file.create has only two arguments. Official documentation

image

DanRotaru avatar Jan 07 '24 22:01 DanRotaru

This was a newly added feature that I forgot to add to the documentation

moudey avatar Jan 07 '24 22:01 moudey