datatugui

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentScreenWebUIURL added in v0.11.0

func CurrentScreenWebUIURL() string

CurrentScreenWebUIURL resolves the web UI URL for the current TUI screen, using the origin from settings (default https://datatug.app).

func NewDataTugMainMenu

func NewDataTugMainMenu(tui *sneatnav.TUI, active RootScreen) (menu sneatnav.Panel)

func OpenCurrentScreenInWebUI added in v0.11.0

func OpenCurrentScreenInWebUI(tui *sneatnav.TUI)

OpenCurrentScreenInWebUI opens the current TUI screen in the web UI in the default browser. Bound app-wide to Ctrl+W and the "Web UI" actions-menu item.

func RegisterMainMenuItem

func RegisterMainMenuItem(id RootScreen, item MainMenuItem)

func RegisterWebUIHandoff added in v0.11.0

func RegisterWebUIHandoff(tui *sneatnav.TUI)

RegisterWebUIHandoff binds Ctrl+W and adds the "Web UI" actions-menu item.

func WebUIURLForScreen added in v0.11.0

func WebUIURLForScreen(origin, screenPath string) string

WebUIURLForScreen resolves the web UI URL for a TUI screen path.

Types

type MainMenuItem struct {
	Text     string
	Shortcut rune
	Action   func(tui2 *sneatnav.TUI, focusTo sneatnav.FocusTo) error
	// contains filtered or unexported fields
}

type RootScreen

type RootScreen int
const (
	RootScreenProjects RootScreen
	RootScreenViewers
	RootScreenSettings
	RootScreenWebUI
)

Jump to

Keyboard shortcuts

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