docs/configuration/new-items.html
Add new items to the context menu.
The section can have the following entry types, all of which are optional :
Menuitems, i.e. one or more of the following:
item entries. These appear as top-level items in a context menu.menu entries. These appear as top-level sub-menus in a context menu.separator entries. These create a horizontal line between the given entries.One or more imports. The content of the given file will be placed in the position of the import.
In the following example, one top-level item is created, that is separated with a horizontal line from an adjacent sub-menu, which in turn has one sub-item on its own:
item(title = 'Hello, World!')
separator
menu(title = 'sub menu' image = #0000ff)
{
item(title = 'test sub-item')
}
menuitem is an umbrella term for those entry types, that may appear in a menu. These simply include the following:
items create a single menu entry.
Either a title or a image property is mandatory (set to a non-null value). For further details, please refer to the properties page.
item( title = value [property = value [...] ])
menu entries create a new sub-menu. They have properties and sub-entries.
Either a title or a image property is mandatory (set to a non-null value). For further details, please refer to the properties page.
menus can have the following entry types, all of which are optional :
Menuitems, i.e. one or more of the following:
item entries.menu entries.separator entries. These create a horizontal line between the given entries.One or more imports. The content of the given file will be placed in the position of the import.
menu( title = value [property = value [...] ])
{
[item() [...] ]
[menu(){} [...] ]
[separator [...] ]
[import 'path/to/import.nss' [...] ]
}
separators create a horizontal line.
separators do not have any mandatory properties. Please refer to the properties page for further details.
separator
separator( property = value [property = value [...] ])