Documentation
¶
Overview ¶
Package rightclick provides a shared helper for building context menu commands from the action registry and user configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
func Cmd(cfg config.ActionsConfig, itemType actions.ItemType, label string) (tea.Cmd, actions.ActionID)
Cmd builds the tea.Cmd for a right-click on the given item type. If the user has configured a direct action override, it returns nil and the action ID so the caller can execute it inline. If the default context_menu action applies, it returns a command to show the action picker modal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.