-
-
Notifications
You must be signed in to change notification settings - Fork 13
mactop v2.0.6 #13
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
base: main
Are you sure you want to change the base?
mactop v2.0.6 #13
Conversation
Merge main to dev
Changed the number of available layouts from 10/6 to 17 in both the README and the in-app help text to reflect the current application state. Also added missing background color control to the help text.
The help menu can now be scrolled using j/k, arrow keys, and mouse wheel. Help text rendering is updated to show only visible lines with scroll indicators. A new helpScrollOffset global tracks scroll position, and related event handling is added for both keyboard and mouse events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds scrollable help text functionality to mactop version 2.0.6. When the help menu content exceeds the terminal height, users can now scroll through it using keyboard (j/k, arrow keys) or mouse wheel, with visual scroll indicators.
Key Changes:
- Added help text scrolling with offset tracking and bounds checking
- Implemented keyboard and mouse wheel scroll controls for the help menu
- Updated help text to document the new scroll controls and reorganize settings information
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/app/globals.go | Added helpScrollOffset variable to track help menu scroll position |
| internal/app/events.go | Implemented keyboard (j/k, arrows) and mouse wheel event handlers for help scrolling |
| internal/app/app.go | Refactored updateHelpText() to support scrolling with viewport calculation and scroll indicators, reset scroll offset in toggleHelpMenu() |
| README.md | Updated documentation to reflect the correct number of available layouts (17) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replaces system_profiler shell calls with direct IOKit-based enumeration for Thunderbolt, USB, storage, and GPU core count. Adds new CGo bindings and Go wrappers for native device queries, updates the profiler to use these for faster and more reliable hardware info, and introduces integration tests for the new native profiler. Also updates CLI and refines Thunderbolt bus parsing.
Introduces RDMADevice struct and extends RDMAStatus to include a list of RDMA devices. Adds logic to enumerate RDMA devices and map them to Thunderbolt buses based on network interface names. Updates CSV output and data collection to include RDMA device count and details.
Note
Modernizes hardware discovery and UI/CLI:
system_profilercalls to native IOKit forThunderbolt,USB,Storage, and fast GPU core count; adds wrappers innative_stats.goand replaces JSON parsing inprofiler.goibv_devinfo) and maps devices to TB buses; exposes inThunderboltOutputand headless CSV (RDMA_Device_Count)j/k/arrows and mouse; newhelpScrollOffsethandling inapp.go/events.go--format; README updates layout count to 17 and trims legacy deps/acksv2.0.6Written by Cursor Bugbot for commit d36e04c. This will update automatically on new commits. Configure here.