Skip to content

Conversation

@lrstanley
Copy link
Contributor

Changes in this PR

Made some tweaks to message filtering, as I think this will help others. If y'all don't think it will be too useful, or would rather approach it a different way, feel free to close this out.

  • Converted WithFilter(filter) to WithFilters(filters...) to allow chainable filters, with a MsgFilter type to clean things up a little.
  • Added an out-of-box MouseThrottleFilter filter, to cover throttling of high-frequency mouse messages. This logic is also used in crush here, and one of my apps, and I suspect such functionality will help others improve performance when they don't need the high-frequency tracking.

@codecov
Copy link

codecov bot commented Nov 16, 2025

Codecov Report

❌ Patch coverage is 4.54545% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.26%. Comparing base (55b3503) to head (59d353c).
⚠️ Report is 1 commits behind head on v2-exp.

Files with missing lines Patch % Lines
options.go 4.54% 19 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           v2-exp    #1544      +/-   ##
==========================================
- Coverage   57.28%   56.26%   -1.03%     
==========================================
  Files          25       25              
  Lines        1201     1221      +20     
==========================================
- Hits          688      687       -1     
- Misses        436      455      +19     
- Partials       77       79       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lrstanley lrstanley force-pushed the feature/chainable-filters branch from 04404fd to 59d353c Compare November 17, 2025 02:03
@lrstanley
Copy link
Contributor Author

Tests currently breaking due to

replace github.com/charmbracelet/ultraviolet => ../../ultraviolet

@aymanbagabas
Copy link
Member

Tests currently breaking due to

replace github.com/charmbracelet/ultraviolet => ../../ultraviolet

I removed this in the latest v2-exp commit

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