Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add ability to minimize panes on main view #151

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

sambukowski
Copy link
Contributor

When in the main view, you can now minimize or maximize any pane by hitting 'm'.
This does not affect the underlying TextView object that displays the logs. Only the Flex item that holds all the panes are affected and this visual change is reflected only when all the panes on the main view are rendered.

Copy link
Member

@steezeburger steezeburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay this is sick and way cleaner than I thought it was going to be!

@@ -52,6 +52,7 @@ type NewProcessRunnerOpts struct {
Env []string
Args []string
ReadyCheck *ReadyChecker
// TODO: add a StartsMinimized bool when TUI config is added
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we need some config for this but I'm not sure this is the correct place. We can pair on this before tui config

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I guess ProcessRunner is what is passed into ProcessPane, so this is probably the place to put it!

@sambukowski sambukowski merged commit 7f5cdac into main Aug 14, 2024
1 check passed
@sambukowski sambukowski deleted the feature/minimize-panes branch August 14, 2024 21:12
steezeburger added a commit that referenced this pull request Aug 14, 2024
* main:
  add ability to minimize panes on main view (#151)
steezeburger added a commit that referenced this pull request Aug 14, 2024
* main:
  upgrade golangci-lint action (#155)
  add ability to minimize panes on main view (#151)
  Add export of service logs to `dev run` command (#148)
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