Skip to content

Conversation

@chmouel
Copy link

@chmouel chmouel commented Jan 5, 2026

PR Description

Introduced a new configuration option dynamicSidePanelWidth that allows the GUI to automatically adjust the width of side panels based on which panel has focus. When a side panel is focused, the left section expands, and when the main panel is focused, the right section expands. This feature is only applicable in normal screen mode.

The feature includes two new configuration options:

  • sidePanelFocusedRatio: Defines the ratio of the side panel's width when a side panel has focus.
  • mainPanelFocusedRatio: Defines the ratio of the main panel's width when the main panel has focus.

The idea comes from emacs's golden-ratio.el

https://github.com/roman/golden-ratio.el

Demo

recording-20260105-14h29.mp4

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

Introduced a new configuration option `dynamicSidePanelWidth` that allows the
GUI to automatically adjust the width of side panels based on which panel has
focus. When a side panel is focused, the left section expands, and when the
main panel is focused, the right section expands. This feature is only
applicable in normal screen mode.

The feature includes two new configuration options:
- `sidePanelFocusedRatio`: Defines the ratio of the side panel's width when a
side panel has focus.
- `mainPanelFocusedRatio`: Defines the ratio of the main panel's width when the
main panel has focus.

Added corresponding validation and tests for these new configuration options.
Also, included an integration test to verify the functionality of the dynamic
side panel width.

Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
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.

1 participant