Shell icon indicating copy to clipboard operation
Shell copied to clipboard

mode = "none" does not seem to always work

Open dimateos opened this issue 1 year ago • 2 comments

Im trying to add an item at root level after "new" (in spanish)

item(title='Nuevo archivo' pos=indexof('Nuevo', 1) cmd=io.file.create('blank', null, true) image=\uE10E)

I want it to only pop when no element is selected, i tried a bunch of ways and none seem to work:

  • mode="none"
  • mode=mode.none
  • where=sel.count < 1

Also is there a way to remove() items inside the "new" menu it seems like I cannot use find="" for those, maybe related

Thanks!

dimateos avatar Jun 26 '24 15:06 dimateos

  • You can try something like type='back|~Computer|~Recyclebin'
  • You can remove/modify items from built-in/system menus ( those not added by nilesoft shell) by specifying the menu like : remove (find='Folder' in='/New')

ghost avatar Jun 26 '24 18:06 ghost

Thanks a lot! I could achieve both things.

Had to do mode='single' type='dir.back'. Btw seems like not all bitwise operators from the documentation are allowed, if I use & I get errors in the log.

dimateos avatar Jun 27 '24 07:06 dimateos