Skip to content

feat: add word wrapping setting and in-panel button#1326

Open
raphaelluethy wants to merge 1 commit intopingdotgg:mainfrom
raphaelluethy:feat/word-wrapping
Open

feat: add word wrapping setting and in-panel button#1326
raphaelluethy wants to merge 1 commit intopingdotgg:mainfrom
raphaelluethy:feat/word-wrapping

Conversation

@raphaelluethy
Copy link

@raphaelluethy raphaelluethy commented Mar 23, 2026

Complementary to #1250, this PR also introduces a settings option and decouples the setting from the in-panel toggle logic.

What Changed

Added a word wrapping setting and in-diff-panel button.

The in-diff-panel button is decoupled and resets to the settings default on re-opening the diff view, I found this better when testing the change since I sometimes would like to see the unwrapped state without it changing my global settings.

Why

When working on docs and other text files the sideways scrolling breaks reading flow.

UI Changes

Before (no button for warpping):
image

After
CleanShot 2026-03-23 at 09 42 28@2x

With settings flow:
https://cleanshot.com/share/78GQRsvg

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

@github-actions github-actions bot added size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 23, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 23, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b376fbde-62f3-458d-b9a7-ac38c8a4d67b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant