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

scxtop: Implement searchable events #1221

Open
hodgesds opened this issue Jan 18, 2025 · 0 comments
Open

scxtop: Implement searchable events #1221

hodgesds opened this issue Jan 18, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed rust Rust language scxtop

Comments

@hodgesds
Copy link
Contributor

Once #1220 is merged a search function should be implemented for perf events. Pressing the e key renders the event selection interface. This will be a tricky feature to implement due to the fact that keybindings will need to be aware of the AppState. In order to make this work it might require a new AppState, something like TextInput. When events are handled they are handled based on the key map. However, this should be made aware of the AppState so that in the TextInput state any keys are passed directly to handle_action function. From there it will need to keep a buffer of the input on the App struct and use that buffer for filtering events in render_event_list. Ideally fuzzy matching would be supported similar to skim but a substring match is fine for a first implementation.

@hodgesds hodgesds added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed rust Rust language scxtop labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed rust Rust language scxtop
Projects
None yet
Development

No branches or pull requests

1 participant