rightclick

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

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.

func FirstUseCmd

func FirstUseCmd(it actions.ItemType) tea.Cmd

FirstUseCmd returns a tea.Cmd that shows an action picker with a "remember" checkbox for first-use double-click configuration. The picker lists all available actions for the item type with the default pre-selected (listed first).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL