Skip to content

feat(blame): add inline blame display mode option#75

Open
CalvinAllen wants to merge 1 commit intomainfrom
feat/blame/inline-display-mode
Open

feat(blame): add inline blame display mode option#75
CalvinAllen wants to merge 1 commit intomainfrom
feat/blame/inline-display-mode

Conversation

@CalvinAllen
Copy link
Copy Markdown
Contributor

Summary

  • Replaces the unimplemented ShowOnHoverOnly boolean with a new InlineBlameDisplayMode enum setting with three modes:
    • Always — show inline blame on all visible lines (existing default behavior)
    • CurrentLine — show inline blame only on the current caret line
    • Hover — show inline blame only when the mouse hovers over a line
  • Exposes the new setting in Tools > Options > Git Ranger > General under the Display category

Resolves #74

Test plan

  • Verify Always mode shows blame on all lines (existing behavior unchanged)
  • Verify CurrentLine mode shows blame only on the caret line, updating as the caret moves
  • Verify Hover mode shows blame only on the line under the mouse cursor, clearing when the mouse leaves the editor
  • Verify switching between modes in Tools > Options takes effect immediately
  • Verify the setting persists across VS restarts

Replace the unimplemented ShowOnHoverOnly boolean with a three-way
InlineBlameDisplayMode setting (Always, CurrentLine, Hover) so users
can control when inline blame annotations appear.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add option to show inline Blame only once user hover over a line

1 participant