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

Various improvements #372

Merged
merged 10 commits into from
Oct 10, 2022
Merged

Various improvements #372

merged 10 commits into from
Oct 10, 2022

Conversation

jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Oct 10, 2022

image

This PR does a few things:

  • displays ports against containers/services
  • allows cycling through window sizes (like in lazygit) via '+' and '_'
  • fixes issues relating to focus
  • shows selected line in blue

Given these ports can be long, we needed a way to increase the size of the current window so that we can see the whole port if necessary. I've split out a lazycore repo for shared functionality between lazygit and lazydocker and I've moved the boxlayout package into that.

I've also fixed up some focus issues I noticed along the way.

If the IP of the port is 0.0.0.0 we'll omit that, otherwise we'll show it

@jesseduffield jesseduffield changed the title allow changing window size Display ports against containers/services Oct 10, 2022
@@ -15,25 +15,27 @@ import (

func (gui *Gui) wrappedConfirmationFunction(function func(*gocui.Gui, *gocui.View) error) func(*gocui.Gui, *gocui.View) error {
return func(g *gocui.Gui, v *gocui.View) error {
if err := gui.closeConfirmationPrompt(); err != nil {
Copy link
Owner Author

Choose a reason for hiding this comment

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

following lazygit's lead by always returning focus BEFORE running a handler, to prevent all kinds of shenanigans

remove redundant g argument
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