Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMatchPosition ¶
GetMatchPosition returns the viewport scroll position for a given match. This helps auto-scroll to the match location.
Types ¶
type Match ¶
type Match struct {
FileName string // File containing the match
RowIndex int // Index in the DiffRow slice
Side string // "left" or "right"
LineNumber int // Line number in the file
Column int // Column where match starts
Length int // Length of the matched text
Content string // The line content containing the match
}
Match represents a search match in the diff.
Click to show internal directories.
Click to hide internal directories.