Skip to content

fix: use glow with custom style and less for paged help rendering#69

Merged
jangroth merged 2 commits into
mainfrom
fix-glow-paging
May 10, 2026
Merged

fix: use glow with custom style and less for paged help rendering#69
jangroth merged 2 commits into
mainfrom
fix-glow-paging

Conversation

@jangroth

Copy link
Copy Markdown
Owner

Summary

  • Adds files/glow/style.json — dark glamour style with "table": {"color": "253"} to fix unicode border rendering (upstream dark style has "table": {} which causes <E2><94><80> raw bytes in pager)
  • Updates dfh to pipe through CLICOLOR_FORCE=1 glow --style ... | LESSCHARSET=utf-8 less -R for correct colours, unicode tables, and paging
  • Updates scripts/10_setup_zsh.sh to copy style to ~/.config/glow/style.json on install

Closes #59

Test plan

  • dfh tmux — table borders render as unicode, colours present, paging works
  • dfh tmux on a machine without glow — falls back to cat
  • make install~/.config/glow/style.json is created

🤖 Generated with Claude Code

claude and others added 2 commits May 2, 2026 07:51
Swaps bat for glow (via charm.sh apt repo) in the dfh function and
Docker image. Removes the batcat→bat symlink no longer needed.

Closes #59

https://claude.ai/code/session_015LQcdzwRKJASyuw3pgJnVJ
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jangroth jangroth merged commit ce0e420 into main May 10, 2026
1 check passed
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.

Replace bat with glow for rendering of help pages (e.g. dfh tmux)

2 participants