Skip to content

Put the wrap-lines toggle next to the file and diff views #340

Description

@Brikas

Problem statement

The "Wrap Lines in Diffs" setting does the job, but it lives in settings as a global switch. Changing it means leaving whatever I am reading, walking into settings, flipping it, and coming back.

Wrapping is not a preference I hold all the time. It changes with the file in front of me. Then one very long line shows up, wrapped it eats half the screen for a single line, and I want it off for that moment only. Scrolling through several files in one view, the right answer changes file by file.

Proposed solution

Surface the same toggle as a control next to the file and diff views, alongside the other buttons already there. Same setting underneath is fine, it just needs to be reachable without leaving the view.

Acceptance criteria

  • A wrap toggle is reachable from the file and diff views without opening settings
  • Toggling it takes effect immediately on what is on screen
  • It stays in sync with the existing "Wrap Lines in Diffs" setting

Non-goals (optional)

  • Changing the current default
  • A second, separate wrapping behaviour that diverges from the existing setting

Priority (optional)

No response

Additional context (optional)

Happier CLI 0.2.10-dev.74, self-hosted server.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions