mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
focus on current line after returning from subprocess
This commit is contained in:
parent
365096d5b0
commit
645f588cb1
1 changed files with 6 additions and 0 deletions
|
|
@ -344,6 +344,8 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
||||||
servicesView.Highlight = true
|
servicesView.Highlight = true
|
||||||
servicesView.Title = gui.Tr.SLocalize("ServicesTitle")
|
servicesView.Title = gui.Tr.SLocalize("ServicesTitle")
|
||||||
servicesView.FgColor = gocui.ColorWhite
|
servicesView.FgColor = gocui.ColorWhite
|
||||||
|
|
||||||
|
gui.focusPoint(0, gui.State.Panels.Services.SelectedLine, len(gui.DockerCommand.Services), servicesView)
|
||||||
}
|
}
|
||||||
|
|
||||||
containersView, err := g.SetViewBeneath("containers", "services", vHeights["containers"])
|
containersView, err := g.SetViewBeneath("containers", "services", vHeights["containers"])
|
||||||
|
|
@ -354,6 +356,8 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
||||||
containersView.Highlight = true
|
containersView.Highlight = true
|
||||||
containersView.Title = gui.Tr.SLocalize("ContainersTitle")
|
containersView.Title = gui.Tr.SLocalize("ContainersTitle")
|
||||||
containersView.FgColor = gocui.ColorWhite
|
containersView.FgColor = gocui.ColorWhite
|
||||||
|
|
||||||
|
gui.focusPoint(0, gui.State.Panels.Containers.SelectedLine, len(gui.DockerCommand.Containers), containersView)
|
||||||
}
|
}
|
||||||
|
|
||||||
imagesView, err := g.SetViewBeneath("images", "containers", vHeights["images"])
|
imagesView, err := g.SetViewBeneath("images", "containers", vHeights["images"])
|
||||||
|
|
@ -364,6 +368,8 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
||||||
imagesView.Highlight = true
|
imagesView.Highlight = true
|
||||||
imagesView.Title = gui.Tr.SLocalize("ImagesTitle")
|
imagesView.Title = gui.Tr.SLocalize("ImagesTitle")
|
||||||
imagesView.FgColor = gocui.ColorWhite
|
imagesView.FgColor = gocui.ColorWhite
|
||||||
|
|
||||||
|
gui.focusPoint(0, gui.State.Panels.Images.SelectedLine, len(gui.DockerCommand.Images), imagesView)
|
||||||
}
|
}
|
||||||
|
|
||||||
if v, err := g.SetView("options", appStatusOptionsBoundary-1, height-2, optionsVersionBoundary-1, height, 0); err != nil {
|
if v, err := g.SetView("options", appStatusOptionsBoundary-1, height-2, optionsVersionBoundary-1, height, 0); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue