Recycle bin. Show only open and empty #489
-
How to show only these two options when recycle bin is selected ? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
Trying NOR …same result |
Beta Was this translation helpful? Give feedback.
-
modify(type="recyclebin" where=window.is_desktop and !(this.name=="open" or this.name.start("empty")) vis=0) or by regex modify(type="recyclebin" where=window.is_desktop and !regex.match(this.name,'(^open$|^empty.*)') vis=0) You must manually exclude new items from the Recycle Bin if you do not need them to appear in the context menu |
Beta Was this translation helpful? Give feedback.
-
The remaining entries in your case are those that are added by menu(mode="multiple" title=title.more_options image=icon.more_options type='~Recyclebin|~Taskbar' )
{
} Similarly, you can remove other items. |
Beta Was this translation helpful? Give feedback.
-
Ty Xhib-ba. It work. I understood your line (newbie here) and managed to apply it to the various menus created by Shell (Terminal, Apps, so on…) |
Beta Was this translation helpful? Give feedback.
-
I wish you could explain the issue of removing excess options from the recycle bin in a clear manner. Friends who ask questions here should also write the solutions they find here in an understandable way so that other people can benefit from them. It is not easy for me to explain my problem in English, I apologize for the mistakes. |
Beta Was this translation helpful? Give feedback.
-
Hi Whipper74. Here is the line I added in my perso.nss //show only open and empty for recycle bin modify(type="recyclebin" where=window.is_desktop and !regex.match(this.name,'(^ouvrir$|^vider.*)') vis=0) Explanation This following line wasn't necessary in my case so I commented it. Hope it help |
Beta Was this translation helpful? Give feedback.
The remaining entries in your case are those that are added by
Nilesoft Shell
,modify/remove
work for system items or those added by 3rd party only. So you have to manipulate remaining items with Shell code. For removingmore options
addtype='~Recyclebin|~Taskbar'
insideshell.nss
like:Similarly, you can remove other items.