popup

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Confirm-delete overlay: prompts the user to commit or cancel a pending row delete. Dispatches to the reserved "deleterows" / "canceldelete" commands so the app owns the commit lifecycle.

Confirm-save overlay: prompts the user to commit or cancel an in-flight cell edit. Dispatches to the reserved "saveedit" / "canceledit" commands so the app owns the commit lifecycle.

Package popup implements the modal overlays (palette, wizards, prompts) that plug into the app through the ui.Factories registry.

Package popup contains the modal overlays reachable from the command palette. Each file registers its factory in ui.Factories from init().

Import wizard overlay: a three-step popup that loads files or URLs into new tabs. Step 1 asks for a path (with filename tab-completion), step 2 picks the format, step 3 configures text-format options. Registered under the command name "import".

Package popup contains the modal overlays that plug into the app via the ui.Factories registry.

Package popup contains the modal overlays (palette, query editor, exporter, ...) that plug into the app through the ui.Factories registry.

This file holds the shared SQL-execution plumbing used by the query editor (queryeditor.go) and the inline select/filter/order prompts (prompts.go): routing between the live database backend and the embedded engine, the inline-prompt statement builders, and a small line-input + suggestion-list widget pair. Everything is unexported and prefixed "qx".

Refresh overlay: re-fetches the table the active pane shows and swaps it into the pane's base frame in place (no new tab). Registered under the command name "refreshtable" and dispatched by the ActRefresh key binding in database mode.

Package popup contains the modal overlay components (command palette, prompts, wizards, selectors) that plug into the app through the ui.Factories registry.

Package popup - unified OpenObserve query-params selector.

Index

Constants

This section is empty.

Variables

View Source
var Commands = []Command{
	{Name: "query", Aliases: []string{"q"}, Description: "full SQL editor with completion"},
	{Name: "select", Aliases: []string{"s"}, Description: "inline SELECT column list"},
	{Name: "filter", Aliases: []string{"f"}, Description: "inline WHERE clause"},
	{Name: "order", Aliases: []string{"o", "sort"}, Description: "inline ORDER BY clause"},
	{Name: "search", Aliases: nil, Description: "exact text search"},
	{Name: "fuzzysearch", Aliases: nil, Description: "fuzzy text search"},
	{Name: "schema", Aliases: nil, Description: "browse loaded tables / schemas"},
	{Name: "info", Aliases: nil, Description: "table info and column stats"},
	{Name: "export", Aliases: nil, Description: "export current frame to a file"},
	{Name: "import", Aliases: nil, Description: "import a data file as a new tab"},
	{Name: "cast", Aliases: nil, Description: "cast a column to another type"},
	{Name: "register", Aliases: nil, Description: "register current frame as a SQL table"},
	{Name: "histogram", Aliases: nil, Description: "build a histogram of a column"},
	{Name: "scatterplot", Aliases: nil, Description: "build a scatter plot of two columns"},
	{Name: "edit", Aliases: nil, Description: "edit frame in $EDITOR, reimport on save"},
	{Name: "theme", Aliases: []string{"themeselector"}, Description: "theme selector with live preview"},
	{Name: "toggleborders", Aliases: nil, Description: "toggle table borders"},
	{Name: "togglerownumbers", Aliases: nil, Description: "toggle row-number gutter"},
	{Name: "reset", Aliases: nil, Description: "reset current tab to its base frame"},
	{Name: "reloadconfig", Aliases: nil, Description: "reload configuration from disk"},
	{Name: "help", Aliases: nil, Description: "show help overlay"},
	{Name: "tabs", Aliases: nil, Description: "open the tab switcher"},
	{Name: "goto", Aliases: nil, Description: "jump to a row number"},
	{Name: "quit", Aliases: nil, Description: "quit the application"},
}

Commands is the palette command table, in display order.

Functions

func NewOobeSchemaOverlay

func NewOobeSchemaOverlay(ctx ui.AppContext) ui.Overlay

NewOobeSchemaOverlay creates the oobe-specific 4-group schema browser. Registered as "schema" factory for openobserve by dbmode.RegisterFactories.

Types

type Command

type Command struct {
	Name        string   // canonical name dispatched in ui.RunCommandMsg
	Aliases     []string // alternative spellings accepted in the palette
	Description string
}

Command describes one palette entry. The table is exported so the help overlay can render the full command reference.

Jump to

Keyboard shortcuts

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