MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / selectBySearch

Method selectBySearch

buffer.go:776–784  ·  view source on GitHub ↗

clear selectedCell of buffer func (b *Buffer) clearSelection() { b.selectedCell = [][]int{} } search string and add result to selectedCell of buffer

(s string)

Source from the content-addressed store, hash-verified

774
775// search string and add result to selectedCell of buffer
776func (b *Buffer) selectBySearch(s string) {
777 for ii, i := range b.cont {
778 for ji, j := range i {
779 if s == j {
780 b.selectedCell = append(b.selectedCell, []int{ii, ji})
781 }
782 }
783 }
784}
785
786// FilterOptions defines the parameters for a column filter.
787type FilterOptions struct {

Callers 1

Calls

no outgoing calls

Tested by 1