Repository navigation
feat(gui): 60 FPS draggable sidebar divider with visual hover indicator - #48
Open
felipecm-br wants to merge 1 commit into
Open
felipecm-br wants to merge 1 commit into
felipecm-br wants to merge 1 commit into
Conversation
- Reserve a 1-column visual grab strip between sidebar and main panel in normal layout - Highlight grab strip with theme selected_bg and accent color on mouse hover and drag - Cap frame rate to 16ms (~60 FPS) in input_wait_timeout during active sidebar resizing - Enable terminal mouse motion tracking (DEC 1003h) with safe teardown in restore_terminal and panic hook - Add unit tests for grab_column calculation and 16ms resizing timeout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances the draggable sidebar divider with a visual grab column indicator and smooth 60 FPS mouse drag responsiveness.
Changes & Improvements:
Visual Grab Column & Hover Feedback:
grab_column) in normal horizontal layout between the sidebar panels and the main/diff panel.│) at rest matching border styles.theme.selected_bgandtheme.accentwhen hovered or actively dragged.\x1b[?1003h) so hover states update cleanly when moving the cursor across the divider.\x1b[?1003l) cleanly in bothrestore_terminaland the panic hook.60 FPS Responsive Dragging:
input_wait_timeout(), previously only asynchronous operations dropped the poll timeout to16ms. During mouse drag resizing, it was constrained to 5 FPS (200ms) or 20 FPS (50ms).self.sidebar_resizingto the 16ms condition so dragging gestures are smooth at ~60 FPS without triggering unnecessary Git state reloads.Tests & Formatting:
grab_column_layout_and_resizing_timeoutverifying the 1-char layout strip and the 16ms timeout during active drag.cargo fmt.screenrecording-2026-10-09_20-41-07.mp4