Skip to content

Commit

Permalink
tui: fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Apr 27, 2023
1 parent ac7a433 commit 17a6513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/tui/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (d itemDelegate) Render(w io.Writer, m list.Model, index int, listItem list
}
}

func (i item) FilterValue() string { return "" }
func (i item) FilterValue() string { return string(i) }

func getItems(text string) []list.Item {
return toItems(getLinks(text))
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var DefaultKeyMap = KeyMap{
key.WithHelp("l", "links view"),
),
LinksOpen: key.NewBinding(
key.WithKeys("o", "enter"),
key.WithKeys("o"),
key.WithHelp("o", "open link"),
),
LinksOpenXDG: key.NewBinding(
Expand Down

0 comments on commit 17a6513

Please sign in to comment.