1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add tooltip view for showing menu item descriptions

This commit is contained in:
Jesse Duffield
2022-05-08 12:46:48 +10:00
parent 517e9445df
commit f257740ea7
14 changed files with 85 additions and 45 deletions

View File

@ -88,6 +88,8 @@ func (gui *Gui) layout(g *gocui.Gui) error {
minimumWidth := 10
gui.Views.Limit.Visible = height < minimumHeight || width < minimumWidth
gui.Views.Tooltip.Visible = gui.Views.Menu.Visible && gui.Views.Tooltip.Buffer() != ""
for _, context := range gui.TransientContexts() {
view, err := gui.g.View(context.GetViewName())
if err != nil && err.Error() != UNKNOWN_VIEW_ERROR_MSG {