Skip to content
Discussion options

You must be logged in to vote

Using hl with an interactive pager

hl has a built-in pager profile system that tries candidates in order until one is found. The first thing to do is arrange the candidate list so your preferred pager is tried first and generic environment variables like PAGER don't override your choice.

Step 1 — Set candidate priority

Edit ~/.config/hl/config.toml (Linux/macOS) and override the [pager] section. The key idea: put your preferred profile right after the HL_PAGER entry and before the { env = "PAGER" } entry so that a shell-wide PAGER=less doesn't silently win.

For example, to prefer fzf, then fall back to ov, then less:

[pager]
candidates = [
  # Application-specific env vars still take top …

Replies: 1 comment

Comment options

pamburus
Feb 28, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by pamburus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant