Keep content section fixed terminal width. #6

Open
opened 12 months ago by crunk · 2 comments
crunk commented 12 months ago
Owner

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.

Nice yeh, I think my math is just off and I was mostly guessing. Here's what it's doing so far:

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?

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?
decentral1se added the
bug
label 12 months ago
Poster
Owner

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 :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.