Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new finder primitive #677

Closed
wants to merge 11 commits into from
Closed

Conversation

lemoony
Copy link

@lemoony lemoony commented Dec 8, 2021

This change adds a new primitive called finder to tview:

grafik

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 ktr0731/go-fuzzyfinder#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.

aditya-K2 and others added 11 commits November 15, 2021 10:29
Added the Functionality to Customize the following colors of the
Autocomplete list :

	1. Main Text
	2. Selected Background Color
	3. Selected Text Color
	4. Background Color

The Colors can be set through the Following Functions

	1. SetAutocompleteMainTextColor
	2. SetAutocompleteSelectBackgroundColor
	3. SetAutocompleteSelectedTextColor
	4. SetAutocompleteBackgroundColor
* Add more styling options

* Minor refactoring of finder code; updated demo screenshot

* Fix finder wrap around
Customize Colors of Autocomplete List
…inder offset when currently matched items are out of view
@lemoony
Copy link
Author

lemoony commented Jan 3, 2023

Since this pull request is now over a year old and it doesn't get merged i'm closing it. I've integrated this primitive directly in my code.

@lemoony lemoony closed this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants