charmbracelet / charmbracelet/bubbletea
Allow adding multiple filters
- Dominant language
- Go
- Stars
- 44.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I need to use multiple filters. While I can easily implement a function to do this and provide it as a single filter, it would be nice to have the option to add filters independently, especially when dynamically building the list of `ProgramOption`.
An example:
```go
p := tea.NewProgram(
MyModel{},
tea.WithAddedFilter(AlterSomeEvent),
tea.WithAddedFilter(RemoveSomeOtherEvent))
```
Contributor guide
Research direction
Start by locating the ProgramOption implementation and the existing filter option, then trace how options are applied when creating a tea.Program. The change is complete when multiple filters can be supplied independently, including while dynamically building ProgramOption values, and all supplied filters are applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100