The content section widht is adjusting according to the currently displayed content, at least it is now on my machine. It would be nice to keep this just as large as possible (terminal width) somehow.
The content section widht is adjusting according to the currently displayed content, at least it is now on my machine. It would be nice to keep this just as large as possible (terminal width) somehow.
So yeh, maybe we need to get those calculations right so the width/height don't exceed the terminal and the space shared between them is visually nice / clear. Then perhaps the content needs wrapping inside the viewport? There could be more styles required.
Nice yeh, I think my math is just off and I was mostly guessing. Here's what it's doing so far:
* [grab the terminal width at start of program](https://git.vvvvvvaria.org/varia/go-sh-manymanuals/src/commit/38b604dde3e6ce95f38d30b59cedb2ddad9610ed/gshmm.go#L336-L339)
* [set the width / height for the viewport (borked)](https://git.vvvvvvaria.org/varia/go-sh-manymanuals/src/commit/38b604dde3e6ce95f38d30b59cedb2ddad9610ed/gshmm.go#L117)
* [set the width / height for the datasheet listing (borked also)](https://git.vvvvvvaria.org/varia/go-sh-manymanuals/src/commit/38b604dde3e6ce95f38d30b59cedb2ddad9610ed/gshmm.go#L129-L130)
* [respond to terminal resizing (not implemented)](https://git.vvvvvvaria.org/varia/go-sh-manymanuals/src/commit/38b604dde3e6ce95f38d30b59cedb2ddad9610ed/gshmm.go#L264-L266)
So yeh, maybe we need to get those calculations right so the width/height don't exceed the terminal and the space shared between them is visually nice / clear. Then perhaps the content needs wrapping inside the viewport? There could be more styles required.
Once this is solved then this also covers https://git.vvvvvvaria.org/varia/go-sh-manymanuals/issues/7 since if you are always respecting the widths then you will match 79 chars also?
In i3 when I hit super+shift+space, to take the terminal out of tiled and into floating mode, it makes the terminal instantly 79chr wide. This I use to debug the designs of the Varia banners.
you can make a terminal smaller but I think thats where our support should end :)
In i3 when I hit super+shift+space, to take the terminal out of tiled and into floating mode, it makes the terminal instantly 79chr wide. This I use to debug the designs of the Varia banners.
you can make a terminal smaller but I think thats where our support should end :)
The content section widht is adjusting according to the currently displayed content, at least it is now on my machine. It would be nice to keep this just as large as possible (terminal width) somehow.
Nice yeh, I think my math is just off and I was mostly guessing. Here's what it's doing so far:
grab the terminal width at start of program
set the width / height for the viewport (borked)
set the width / height for the datasheet listing (borked also)
respond to terminal resizing (not implemented)
So yeh, maybe we need to get those calculations right so the width/height don't exceed the terminal and the space shared between them is visually nice / clear. Then perhaps the content needs wrapping inside the viewport? There could be more styles required.
Once this is solved then this also covers https://git.vvvvvvaria.org/varia/go-sh-manymanuals/issues/7 since if you are always respecting the widths then you will match 79 chars also?
In i3 when I hit super+shift+space, to take the terminal out of tiled and into floating mode, it makes the terminal instantly 79chr wide. This I use to debug the designs of the Varia banners.
you can make a terminal smaller but I think thats where our support should end :)