-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
option to manually adjust the horizontal padding #3633
Comments
I like this one very much! Willing to implement if the codeowners approve |
I haven't done much work with Go but I can certainly download any feature branch you come up with @belyakov-am and give feedback and review PR on that basis if permitted to do so. |
I'm having trouble understanding what this means. Right now, there's no padding between panels, neither vertical nor horizontal. Could you illustrate what you mean with a screenshot or two? |
There used to be a space to the left and right of that bottom line. We removed it in #3076, and there's a little bit of discussion about it here (not much, unfortunately, most of the conversation was done in person.) |
Hi @stefanhaller . Maybe technically there is no padding between the box-drawing characters used to draw the boarders, but from a graphic design point of view, it looks like padding. I've used pink lines in this screenshot to show what the mind interprets as vertical and horizontal padding. |
I see, thanks for explaining. It shouldn't be super hard to add this; the code is here. For experimentation (draft PR) I'd probably change the code directly in the vendor directory; once we have something that we're happy with, it would have to become a PR in the lazycore repo.
There is already a single space between the icon and the name, it just isn't visible for you because your font is so narrow. In the screenshot above, you can tell that the "ts" icon lines up with the "c" of "core" above it, and the "createCo..." lines up with the "r" in "core"; that's two positions apart. The "ts" icon just has a width of two characters in your font. Here's what it looks like with my font: Making the width between icon and name configurable to cater to fonts like yours seems to take it a bit too far for my taste. I do however think that we should use the folder icon of the last screenshot, it looks better than ours. |
I'm a big believer in "if you want it, you build it". I also have near zero experience with Go. I'm not 100% sure from the wording of your latest PR whether you suggesting I should personally have a go at creating the draft feature branch? My font is the Nerd Font patched version of Victor Mono. Kitty settings control much of how it is presented. Is it a "normal" space between the icon and the name? I suspect the space is being presented normally by Kitty, but the icon before is overlapping the next character. |
I wasn't suggesting anything; whoever wants to give it a go is free to try it. It sounded like @belyakov-am was interested, but if you want to, feel free. But I now got interested myself, not because I want the feature, but because I'm hoping this might simplify the code in So I just spent a few minutes on trying it, and pushed the result as a box-view-padding branch. Feel free to take it from there; it feels almost done to me, what's missing is a few tests in I didn't do anything to the |
The vertical padding between panel in LazyGit appears to be two lines.
The horizontal padding appears to be one character.
I presume this is because both are set to the smallest practical value, to save screen real estate.
But for purely aesthetic reasons, I would like the option of manually overwriting the value for horizontal padding.
I don't yet know whether I would then personally settle on two characters for the width, or three characters because of the
adjust_line_height 4
in mykitty.conf
. But either way, I would very much value the opportunity to experiment and decide.The text was updated successfully, but these errors were encountered: