app

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideWindow

func HideWindow(_ *exec.Cmd)

Types

type App

type App struct {
	Bind []any
	Menu *menu.Menu
	// contains filtered or unexported fields
}

func InitApp

func InitApp() *App

func NewApp

func NewApp(service *Service) *App

func (*App) Startup

func (p *App) Startup(ctx context.Context)

type Searcher

type Searcher interface {
	Cmd(query *pb.Query) (string, []string)
	Search(query *pb.Query, reader *bufio.Reader, acks chan<- *pb.Ack)
	Install() error
}

type Service

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

func NewService

func NewService(
	cfg *pb.Config,
	pro *oss.ProcInfo,
	ags *ag.Ag,
	rgs *rg.Rg,
	ugs *ugrep.Ugrep,
) *Service

func (*Service) About

func (p *Service) About() string

func (*Service) AddDirs

func (p *Service) AddDirs()

func (*Service) AsyncQuery

func (p *Service) AsyncQuery(query *pb.Query) *pb.Query

func (*Service) Config

func (p *Service) Config() *pb.Config

func (*Service) DelDir

func (p *Service) DelDir(dir string)

func (*Service) Dir added in v0.1.4

func (p *Service) Dir(path string)

func (*Service) File added in v0.1.4

func (p *Service) File(file string) string

func (*Service) Open

func (p *Service) Open(path string)

func (*Service) Query

func (p *Service) Query(query *pb.Query) *pb.Result

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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