navigator

package
v0.0.0-...-e270a8f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KEY_TO_PAGE map[tcell.Key]pages.Index = map[tcell.Key]pages.Index{
	tcell.KeyCtrlW: pages.WELCOME,
	tcell.KeyCtrlE: pages.ENDPOINTS,
	tcell.KeyCtrlH: pages.HELP,
	tcell.KeyCtrlN: pages.NEW_COLLECTION,
	tcell.KeyCtrlL: pages.LIST_COLLECTIONS,
}

Functions

This section is empty.

Types

type Navigator struct {
	CurrentPage  pages.Index
	PreviousPage pages.Index
	// contains filtered or unexported fields
}

func New

func New(p *tview.Pages) *Navigator
func (navigator *Navigator) Navigate(page pages.Page, addAndSwitch bool) error
func (navigator *Navigator) Pop()
func (navigator *Navigator) ShowPopup(popup tview.Primitive)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳