search

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

editorleaf/search/search.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FoundPosition

type FoundPosition struct {
	Start editbuffer.Cursor
	Stop  editbuffer.Cursor
}

Position found in search results

func NewFoundPosition

func NewFoundPosition(startRowIndex, startColIndex, stopRowIndex, stopColIndex int) FoundPosition

type SearchStruct

type SearchStruct struct {
	CurrentSearchIndex int
	Indexes            []FoundPosition
}

func NewSearch

func NewSearch() *SearchStruct

func (*SearchStruct) GetFindIndexes

func (ss *SearchStruct) GetFindIndexes() []FoundPosition

func (*SearchStruct) GetFoundPosition

func (ss *SearchStruct) GetFoundPosition(rowIndex int) int

Returns the first index of the found search position that matches the row index. Return -1, not found match position.

Jump to

Keyboard shortcuts

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