Giter Site home page Giter Site logo

Option to hide panels about lazygit HOT 10 CLOSED

nullromo avatar nullromo commented on September 25, 2024
Option to hide panels

from lazygit.

Comments (10)

mark2185 avatar mark2185 commented on September 25, 2024 1

Try pressing + and _ to switch screen modes to see if that helps.

from lazygit.

stefanhaller avatar stefanhaller commented on September 25, 2024 1

A few things to try:

  • press + to go into "half" screen mode (you'd have to do that every time you start lazygit, so maybe not ideal; also, it divides panel vs. diff view 50/50, maybe also not what you want. We have a PR to make this configurable, but it hasn't been reviewed by anybody yet: #3411)
  • set the gui.expandFocusedSidePanel config to true. I like this a lot, it enlarges whatever panel has the focus; maybe that's already enough?

from lazygit.

stefanhaller avatar stefanhaller commented on September 25, 2024 1

This is great! Not sure where this came from, since it's not in the docs, but it does work.

Oh wow. We recently switched to auto-generating the docs, and there's a pretty bad bug in there that omitted all boolean config keys. Here's a fix: #3622.

Only thing is it "expands" the panel to be ever so slightly larger than it used to be (34 lines in my case instead of the default 22 lines). Is there a way to make it expand even more?

I think currently it expands it to make it twice as high as the others. I guess we could make this configurable somehow; I would also like it if it could be taller (maybe, not sure yet 😄). If you want to experiment with this yourself, the code is here.

from lazygit.

nullromo avatar nullromo commented on September 25, 2024

Try pressing + and _

Press + to go into "half" screen mode

Cool feature I didn't know about! This is sooo close to being what I want. In half screen mode, pressing Enter on a file hides the file list, which is not ideal. And having to press + to start every lazygit session isn't so good either.

Set the gui.expandFocusedSidePanel config to true

This is great! Not sure where this came from, since it's not in the docs, but it does work. Only thing is it "expands" the panel to be ever so slightly larger than it used to be (34 lines in my case instead of the default 22 lines). Is there a way to make it expand even more? Not including the UI element lines with the borders, my default layout has 68 usable lines (1 in the Status panel, 22 in each of the other 3 panels, and 1 in the Stash panel). If all the non-active panels actually fully collapsed instead of just shrinking a little, that would be neat.

from lazygit.

stefanhaller avatar stefanhaller commented on September 25, 2024

Since it was so easy to do, I went ahead and made a PR: #3623. I find it useful, and I like a value of 3 myself. @nullromo Can you build from source and give it a try?

from lazygit.

nullromo avatar nullromo commented on September 25, 2024

I would love to, but I haven't worked with Go before. I got as far as cloning the repo, checking out the branch, and installing go. Now I'm here and wildly googling...

$ go version
go version go1.18.1 linux/amd64
$ pwd
/home/kkovacs/lazygit
$ make
go build -gcflags='all=-N -l'
pkg/config/user_config_validation.go:5:2: cannot find package "." in:
        /home/kkovacs/lazygit/vendor/slices
make: *** [Makefile:6: build] Error 1

No idea what this means. Kind of embarrassing but hey, you have start somewhere.

EDIT I am reading CONTRIBUTING.md now...

from lazygit.

stefanhaller avatar stefanhaller commented on September 25, 2024

Your version of go is very old, where did you install that from? Lazygit requires 1.22 to build.

from lazygit.

nullromo avatar nullromo commented on September 25, 2024

sudo apt-get -y install golang-go

from lazygit.

nullromo avatar nullromo commented on September 25, 2024

Ok, this works

$ sudo add-apt-repository ppa:longsleep/golang-backports
$ sudo apt-get update
$ sudo apt-get install golang
$ go version
go version go1.22.3 linux/amd64

from lazygit.

nullromo avatar nullromo commented on September 25, 2024

Ok after that brief aside, I was able to get it working. Looks good! Setting the value between 22 and 32 looks good for me. However, it's a little unclear what the option actually does. I think it's pretty easy to understand the concept of "weight," but not that intuitive to translate the weight into what that actually looks like. For instance, I had to mess around with the number and set it to 5, 10, 20, 30, 40, etc. just to see what looked good.

But anyway, I'm not sure that really matters. Messing around with it is fine. And it works! So if this gets merged, it's fully providing what I asked for in the original issue ❤️

from lazygit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.