Skip to content

feat(diff): add toggle for side-by-side and inline layouts#302

Closed
jugarpeupv wants to merge 1 commit intoesmuellert:mainfrom
jugarpeupv:feature/toggle_layout
Closed

feat(diff): add toggle for side-by-side and inline layouts#302
jugarpeupv wants to merge 1 commit intoesmuellert:mainfrom
jugarpeupv:feature/toggle_layout

Conversation

@jugarpeupv
Copy link

Adds a new keymap and action to toggle the diff layout between 'side-by-side' and 'inline' views. The toggle is available from both the explorer and diff view buffers, and updates the global config so subsequent file selections use the chosen layout. Prevents toggling in conflict mode and ensures proper buffer/window management during the transition. Improves usability for users who prefer different diff layouts.

Adds a new keymap and action to toggle the diff layout between
'side-by-side' and 'inline' views. The toggle is available from both
the explorer and diff view buffers, and updates the global config so
subsequent file selections use the chosen layout. Prevents toggling in
conflict mode and ensures proper buffer/window management during the
transition. Improves usability for users who prefer different diff
layouts.
@esmuellert
Copy link
Owner

Thanks for the PR! The layout toggle required some architecture-level changes to handle window state transitions cleanly, so I implemented it in #307 using the existing single_pane mechanism for consistency.

@esmuellert esmuellert closed this in 46a1b8e Mar 4, 2026
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