mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #677] [CLOSED] Added new finder primitive #1013
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1013
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/677
Author: @lemoony
Created: 12/8/2021
Status: ❌ Closed
Base:
master← Head:feature/finder📝 Commits (10+)
40a1fa9Customize Colors of Autocomplete List343e76bImplemented finder primitive09ba6f4Support custom matcher function + sort by scoree0ecf7dFix finder wrapAround bug when scrolling above last item: reset item offset to zerof330a4fFix selection change doesn't get detected bug when filtering89f0d77Add more styling options to finder primitive (#1)ccdebceMerge pull request #2 from aditya-K2/autocompleteColors0ac570bAdd SetHighlightMatchMaintainBackgroundColor styling option; adjust finder offset when currently matched items are out of viewc4e7978Merge branch 'rivo:master' into feature/finder709500dMerge branch 'rivo:master' into snipkit📊 Changes
7 files changed (+1038 additions, -8 deletions)
View changed files
➕
demos/finder/README.md(+9 -0)➕
demos/finder/customatcher/main.go(+55 -0)➕
demos/finder/main.go(+64 -0)➕
demos/finder/screenshot.png(+0 -0)➕
finder.go(+855 -0)📝
inputfield.go(+48 -8)📝
util.go(+7 -0)📄 Description
This change adds a new primitive called
finderto tview:It is inspired by go-fuzzfinder and fzf but more flexible in terms of appearance.
It allows to search within a list of items by typing. The primitive will filter the list accordingly and highlight all matches.
The finder primivite is a way to implement https://github.com/ktr0731/go-fuzzyfinder/issues/29. Since the primitive does allow to provide a custom matcher function, tview + go-fuzzfinder can be combined to allow fuzzy searching with the improved appearance configurations provided by tview.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.