Skip to content

Add Custom Layouts#520

Open
bhh32 wants to merge 3 commits intopop-os:masterfrom
bhh32:master
Open

Add Custom Layouts#520
bhh32 wants to merge 3 commits intopop-os:masterfrom
bhh32:master

Conversation

@bhh32
Copy link

@bhh32 bhh32 commented Jul 18, 2025

This pull request introduces support for customizable profile layouts and includes a minor change to the terminal's default behavior. The most important changes involve adding new structures for defining layouts, updating the Profile struct to include an optional layout configuration, and modifying the terminal's default focus state.

Support for customizable profile layouts:

  • src/config.rs: Added LayoutDefinition and SplitDefinition structs to define profile layouts, including properties for split axis, ratio, and target pane. Also introduced the SplitAxis enum to specify horizontal or vertical splits.
  • src/config.rs: Updated the Profile struct to include an optional custom_layout field of type Option<LayoutDefinition>. This allows profiles to define custom layouts.
  • src/config.rs: Modified the Default implementation for Profile to set custom_layout to None by default.

Terminal behavior change:

  • src/terminal.rs: Changed the default value of is_focused in the Terminal struct to false instead of true.

Localization:

  • i18n/en/cosmic_term.ftl: Added a new localization string profile-layouts = Profile Layouts to support the new feature.
profile_layout_button profile_layout_editor profile_layout_applied

@bhh32
Copy link
Author

bhh32 commented Sep 5, 2025

I'm just checking in on this PR. It's been open for over a month and I want to make sure someone takes a look at it. I really do think that it is a unique feature that others, including me, would enjoy having. It does not change the default behavior of the terminal, this is an optional enhancement feature.

@jackpot51
Copy link
Member

We are open to it. This amount of new UI would not be able to land during the first release cycle (we are entering feature freeze and focusing on bug fixes now).

@bhh32
Copy link
Author

bhh32 commented Sep 5, 2025

now).

Awesome to hear! Wish I'd have gotten this in a little earlier, lol! I'll keep the branch sync'd with upstream so it'll be easier to integrate later.

@bhh32
Copy link
Author

bhh32 commented Feb 8, 2026

@jackpot51 and @mmstick just wanted to see if this is still a viable addition?

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