mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 22:41:03 +03:00
fix: type name
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
6c18900279
commit
cf1fe5f9ce
@ -71,10 +71,10 @@ func (f filteredItems) items() []Item {
|
|||||||
// message should be routed to Update for processing.
|
// message should be routed to Update for processing.
|
||||||
type FilterMatchesMsg []filteredItem
|
type FilterMatchesMsg []filteredItem
|
||||||
|
|
||||||
// Filter takes a term and a list of strings to search through
|
// FilterFunc takes a term and a list of strings to search through
|
||||||
// (defined by Item#FilterValue).
|
// (defined by Item#FilterValue).
|
||||||
// It should return a sorted list of ranks.
|
// It should return a sorted list of ranks.
|
||||||
type Filter func(string, []string) []Rank
|
type FilterFunc func(string, []string) []Rank
|
||||||
|
|
||||||
// Rank defines a rank for a given item.
|
// Rank defines a rank for a given item.
|
||||||
type Rank struct {
|
type Rank struct {
|
||||||
@ -135,7 +135,7 @@ type Model struct {
|
|||||||
// Key mappings for navigating the list.
|
// Key mappings for navigating the list.
|
||||||
KeyMap KeyMap
|
KeyMap KeyMap
|
||||||
|
|
||||||
Filter Filter
|
Filter FilterFunc
|
||||||
|
|
||||||
disableQuitKeybindings bool
|
disableQuitKeybindings bool
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user