clear selectedCell of buffer func (b *Buffer) clearSelection() { b.selectedCell = [][]int{} } search string and add result to selectedCell of buffer
(s string)
| 774 | |
| 775 | // search string and add result to selectedCell of buffer |
| 776 | func (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. |
| 787 | type FilterOptions struct { |
no outgoing calls