Skip to content

Conversation

@metaspartan
Copy link
Owner

@metaspartan metaspartan commented Jan 3, 2026

Note

Modernizes hardware discovery and UI/CLI:

  • Switches system_profiler calls to native IOKit for Thunderbolt, USB, Storage, and fast GPU core count; adds wrappers in native_stats.go and replaces JSON parsing in profiler.go
  • Adds RDMA device enumeration (via ibv_devinfo) and maps devices to TB buses; exposes in ThunderboltOutput and headless CSV (RDMA_Device_Count)
  • Enhances help menu: shows current settings, expands controls, and adds scroll with j/k/arrows and mouse; new helpScrollOffset handling in app.go/events.go
  • Updates headless mode: CSV headers/rows reflect RDMA count; maps TB net/RDMA to buses
  • CLI/help text mentions --format; README updates layout count to 17 and trims legacy deps/acks
  • Bumps version to v2.0.6

Written by Cursor Bugbot for commit d36e04c. This will update automatically on new commits. Configure here.

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.
Copilot AI review requested due to automatic review settings January 3, 2026 00:20
Copy link

Copilot AI left a 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.
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