Help us shape the future of Go! Take the 2026 Go Developer Survey

textsearch

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package textsearch implements a repository-wide text search overlay.

Index

Constants

View Source
const (
	DefaultMaxResults = 200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Path    string
	Snippet string
	Line    int
}

Result is one git-grep match.

type TextSearch

type TextSearch struct {
	panels.BasePanel
	// contains filtered or unexported fields
}

TextSearch is an overlay panel for repository-wide text search.

func New

func New(root string, th *theme.Theme) *TextSearch

New creates a text search overlay rooted at root.

func (*TextSearch) Init

func (ts *TextSearch) Init(_ context.Context) tea.Cmd

Init implements panels.Panel.

func (*TextSearch) KeyBindings

func (ts *TextSearch) KeyBindings() []panels.KeyBinding

KeyBindings implements panels.Panel.

func (*TextSearch) Update

func (ts *TextSearch) Update(msg tea.Msg) (panels.Panel, tea.Cmd)

Update implements panels.Panel.

func (*TextSearch) View

func (ts *TextSearch) View(width, height int) string

View implements panels.Panel.

Jump to

Keyboard shortcuts

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