File list: h/l and arrow keys do not page (paginator KeyMap is empty)
Describe the bug
In the file list, the footer says h/l ←/→ page, but none of those four keys change the page. j/k move the cursor fine. Paging works only with the undocumented f/d and b/u (and g/G for first/last), which the ? help does not list either.
Setup
- OS: macOS 27.0
- Shell: zsh
- Terminal Emulator: Warp
- Terminal Multiplexer: none
- Locale: en_US.UTF-8
- glow 3.0.0 via Homebrew
To Reproduce
- Run
glowin a directory with more documents than fit one screen (mine shows 94, seven pagination dots). - Press
→orl. Nothing happens. - Press
f. Next page.
Source Code
As far as I can read it: ui/stash.go builds the paginator as a struct literal, paginator.Model{Type: paginator.Dots}, so KeyMap stays the zero value and the paginator's own key handling in Update matches nothing. f/d/b/u still work because glow handles them in its own switch a bit further down in the same file.
Expected behavior
h/l and ←/→ page, as the footer says. paginator.New(paginator.WithType(paginator.Dots)) (or assigning paginator.DefaultKeyMap()) should restore them. Happy to send a PR if you want one.
Additional context
The ? help view lists the same broken keys and omits the working ones.
— printed by Claude Code, signed by me.
Source: charmbracelet/glow