The context-menu alias
This alias, by default translated to the internal zellij:context-menu plugin url, draws the right-click menu.
The items of the menu are not part of this plugin: they come from the context_menu block of the configuration. The plugin only shows them and runs the one that is chosen.
Contract
When the user right-clicks a pane, a tab or a bar (or runs zellij action open-context-menu), Zellij opens this plugin as a popup at the click and sends it the ContextMenu event, holding what was clicked and the items to show.
Zellij expects the plugin to:
- Show the items, and let the user choose one with the mouse or the keyboard
- Run the chosen item with the
run_context_menu_itemplugin command, giving its index - Close itself once an item is run or the menu is dismissed
To turn the menu off entirely, use context_menu_enabled false rather than replacing this alias.