application

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectsModelPluginsController

func NewProjectsModelPluginsController(model *model.Model, win *ui.Window[projects.Project], pluginsBasePath string) *projectsModelPluginsController

func NewSearchContext added in v0.11.0

func NewSearchContext() searchContext

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(win IWindow[projects.Project], manager plugins.PluginManager, controller plugins.PluginsController, options AppOptions) *App

func (*App) Start

func (app *App) Start(args ...string) error

type AppOptions added in v0.10.1

type AppOptions struct {
	EnterCommand string
}

type IWindow

type IWindow[T ui.Croppable] interface {
	SetTitle(title string)
	SetPreview(preview string)
	SetFooterText(text string)
	SetEntries(entries *[]T)
	GetFocusedEntry() (*T, error)
	UpdateWith(f func())

	OnCommand(func(command string, args ...string))
	OnInputChanged(func(input string, entries []T))
	OnAutocomplete(func(input string) string)
	OnEntryFocused(func(T))
	OnEntrySelected(func(T))

	Run() error
}

type SearchApp added in v0.11.0

type SearchApp struct {
	// contains filtered or unexported fields
}

func NewSearchApp added in v0.11.0

func NewSearchApp(window IWindow[plugins.ProjectSearchResult], projects []projects.Project, pluginsManager plugins.PluginManager) *SearchApp

func (*SearchApp) Start added in v0.11.0

func (app *SearchApp) Start(args ...string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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