moudey / Shell

Powerful context menu manager for Windows File Explorer
https://nilesoft.org
MIT License
3.62k stars 121 forks source link

New File context menu issue #299

Closed wolive-20 closed 1 year ago

wolive-20 commented 1 year ago

Using version 1.8.1 I use the following static entry to remove all Google shortcuts from the New File context menu: item(find='Google*' in='New' vis=remove)

Using beta version 1.8.35 results in the following error: [error] line[16] column[33], Property unexpected "shell.nss"

line[16] column[33] is the beginning of the in='New' vis=remove) part of the line

It would appear that the in property is no longer recognized. When this line is removed, version 1.8.35 works without a problem. I've tried different options including those mentioned in [https://github.com/moudey/Shell/discussions/113] but without success. Could you advise how I may achieve the same result as implemented in version 1.8.1.

moudey commented 1 year ago

Correct values:

vis=”remove”
vis=vis.remove
vis=0
wolive-20 commented 1 year ago

Thanks for your reply. I've tried all three recommendations, however, the problem still persists. Even when using the most simplistic shell.nss file, the error always stays the same and points to the row and column where the in property begins. The contents of my shell.nss file is: import 'imports/images.nss' item(type='back' find='Google*' in='new' vis="remove")

The log file is attached. shell.log

moudey commented 1 year ago

1.8.1

static
{
    item(type='back' find='Google*' in='new' vis="remove")
}

build 35 In the update, the sections were dropped and the static section was replaced by changing the identifier item to modify and remove

modify(type='back' find='Google*' in='new' vis="remove")
//or
remove(type='back' find='Google*' in='new')
wolive-20 commented 1 year ago

Thank you very much. Using the new modify identifier instead of item has resolved the problem. Much appreciated.