-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Use case: My team and I use mprocs for improved DX with 6 nodejs/bun processes. It allows us to start up our application easier. However, with no search, finding logs can be tedious. Often my workaround if there are too many logs is to shutdown the instance and run it outside of mprocs to search.
Proposed Hotkey: <C-f> (or /) but any hotkey works for me
Proposed Command: show-search-logs
Behavior:
Pressing <C-f> would bring up a modal (similar to the show-rename-proc modal) to activate search mode, allowing the user to type a substring. As the substring is typed, mprocs would highlight and jump to the first matching occurrence across all process outputs.
Subsequent presses of <C-f> (or <Enter>) would cycle forward through the matches. Optionally, <C-Shift-f> (or <Shift-Enter>) could be used to cycle backward.
To cancel the search and close the modal, pressing <C-a> would exit search mode and return to the normal view.
Example Workflow:
- User presses
<C-f>. - A modal prompt appears (e.g.,
/Search:) at the bottom or top of the terminal, similar to the show-rename-proc modal. - User types
"error"→mprocshighlights the first occurrence and scrolls to the pane where it's found. - Pressing
<C-f>again jumps to the next occurrence in another pane or further down in the same pane. - Pressing
<C-a>cancels the search and closes the modal.
Hud
- Display match count:
Match 2 of 7.
Why Useful:
- Helps me locate logs and errors.
- Reduces the need to scroll manually through panes.
Can I volunteer to help?
Yes, let me know if this is in line with the goals of mprocs, and if I should make a PR, then I'll start making it.