Skip to content

Did Adjustments in profile.go for histbox and heatbox - #64

Closed
atif-1402 wants to merge 2 commits into
vyrx-dev:masterfrom
atif-1402:master
Closed

atif-1402 wants to merge 2 commits into
vyrx-dev:masterfrom
atif-1402:master

Conversation

@atif-1402

Copy link
Copy Markdown
Contributor

histBox - column width now scale dynamically to fit the available space instead of being hardcoded. so no more text wrapping or empty gaps

recording-none-2026-07-11_16-43-09.mp4

heatBox -

tightened the heatmap grid spacing so icons fill the width better

image
  • i also change the icon from ■ to a rounded square icon (nerd icon) but then i realize that not everyone have nerd font installed so reverted that back to ■

@vyrx-dev

vyrx-dev commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

hey, thanks for taking the time to look into this!

so the hist columns are actually already responsive — the whole wide box derives its width from the top row (3 panes side by side), and the column widths are hardcoded because the data itself is fixed-length (wpm is always a few digits, date is always "02 Jan 15:04", mode is "words" or "code", etc). they never wrap or leave gaps because the content just doesn't grow beyond those widths.

adding the ratio-based system would be ~40 extra lines of float math + remainder distribution to dynamically size columns whose content is inherently bounded. it makes the code harder to read (you'd have to trace through the colDef struct and loop to figure out what width a column actually gets) without solving a real problem. for a terminal table with printf'd numbers this is the kind of abstraction that adds complexity without payoff.

the heatmap tweak (11 → 9) is interesting but it tightens the margin a bit too much and could clip on some terminal widths, so i'd rather keep the safer padding there.

gonna close this one out but genuinely appreciate you poking around the profile code. also nice bar, is that quickshell?

screenrecording-2026-07-11_23-44-02.mp4

@vyrx-dev vyrx-dev closed this Jul 11, 2026
@atif-1402

Copy link
Copy Markdown
Contributor Author

Yeah you are right it is kinda making bloat and yeah it is quickshell bar if you want to see its config you can check here https://github.com/atif-1402/quickshell-m3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants