Skip to content

[feature request] Launching a panel with a specified window size. #3042

@thenbe

Description

@thenbe

As I understand it, there are three view size: full, half, normal.

There is a single key in the config file that utilizes the 3 view sizes mentioned above, gui.windowSize. This key only affects the "main" window, which is the one you are presented with just running lazygit without positional args. This all works great.

However, when using positional args (i.e. lazygit stash or lazygit log), the key above does not take effect. I'm not proposing that it should. Instead, I'd like to suggest a new key gui.panelWindowSize (name up for bike-shedding), which controls the default view mode when launching lazygit with a positional argument.

Why?

  1. lazygit stash, in most situations, isn't very useful unless you press _ once (to half) to see the diff because the stash names all look similar so it's difficult to know which is which.

  2. If your workflow has you opening lazygit (stash|log|branch) in a full-screen window (as opposed to a tmux vertical split), then you almost always have a lot (right half+ of the screen) of empty space anyways. So it would make sense for you to set this new flag to half.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions