scxtop: Implement searchable events #1221
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
rust
Rust language
scxtop
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 theAppState
. In order to make this work it might require a newAppState
, something likeTextInput
. When events are handled they are handled based on the key map. However, this should be made aware of theAppState
so that in theTextInput
state any keys are passed directly tohandle_action
function. From there it will need to keep a buffer of the input on theApp
struct and use that buffer for filtering events inrender_event_list
. Ideally fuzzy matching would be supported similar to skim but a substring match is fine for a first implementation.The text was updated successfully, but these errors were encountered: