Shell icon indicating copy to clipboard operation
Shell copied to clipboard

Hide some items in a sub-menu

Open wolive-20 opened this issue 3 years ago • 3 comments

Hi,

I would like to hide only the Google items in the 'New' context sub-menu but can't seem to figure out how to reference the sub-menu items. I would appreciate your assistance if this could be achieved.

Many thanks in advance

image

wolive-20 avatar Sep 21 '22 18:09 wolive-20

Currently only top level menu items are customized, I'll try to target other levels later.

moudey avatar Sep 21 '22 20:09 moudey

Thank you, that will be great.

wolive-20 avatar Sep 22 '22 18:09 wolive-20

Hi @wolive-20,

Modification of sub-items is supported by this command

static
{
    item(find='google' in='/new' vis=remove)
    item(find='rar|cab' in='/7-zip/open archive' vis=disabled)
}

You can use this feature in the next update

moudey avatar Oct 18 '22 00:10 moudey

Hi @moudey, thank you so much for this! Is it possible to move sub-items to the main menu? For example, moving '/7-zip/open archive' to the main menu. Thanks again.

zilpe avatar Nov 16 '22 21:11 zilpe

Hi @zilpe This feature will be added later

moudey avatar Nov 18 '22 21:11 moudey

@wolive-20 Please test this build

add this code to static items

static
{
    item(find='google' in='/new' vis=remove)
    item(find='rar|cab' in='/7-zip/open archive' vis=disabled)
}

moudey avatar Nov 30 '22 22:11 moudey

Hi @moudey - I've downloaded the test build and added the static entries below to the shell.nss file. Unfortunately it does not work.

static { item(find='Shortcut' in='/new' vis=remove) item(find='Google Docs' in='/new' vis=disabled) item(find='Google Sheets' in='/new' vis=remove) }

Image_007 (02-12-2022)

wolive-20 avatar Dec 02 '22 11:12 wolive-20

@wolive-20 Sorry try this

moudey avatar Dec 02 '22 14:12 moudey

Hi @moudey - The latest version works perfectly, thank you very much.

static { item(find='Shortcut' in='/new' vis=disabled) item(find='Google*' in='/new' vis=remove) }

Image_011 (02-12-2022)

wolive-20 avatar Dec 02 '22 15:12 wolive-20