Documentation
¶
Overview ¶
Package search provides ripgrep-based full-text search across markdown files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineSnippet ¶
LineSnippet captures contextual lines around a match.
type Options ¶
type Options struct {
IncludeGlobs []string
ExcludeGlobs []string
Context int
CaseSensitive bool
SearchHidden bool
}
Options controls the behavior of the ripgrep search.
type Result ¶
type Result struct {
Path string `json:"path"`
Match string `json:"match"`
LineText string `json:"lineText"`
Before []LineSnippet `json:"before,omitempty"`
After []LineSnippet `json:"after,omitempty"`
Line int `json:"line"`
Column int `json:"column"`
}
Result represents a single match from ripgrep.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service executes ripgrep searches rooted at the repository.
func NewService ¶
NewService constructs a ripgrep-backed search service.
Click to show internal directories.
Click to hide internal directories.