Skip to content
Discussion options

You must be logged in to vote

Currently it is impossible. Pager is operating on the processed text only, it does not have any information about the source text.

Potentially something like this could be implemented by double processing. For example, hl could provide raw text to the pager and a command to format raw text which would call hl again. But I doubt any pager supports running additional commands to preprocess the input data except for the "preview" window like fzf and sk do.

So, currently you can configure only the opposite. You can view raw JSON/logfmt in the main pain and view it formatted with hl in the preview pane.
Here is an example:

# Pager profile for `sk`.
[[pager.profiles]]
name = "skim"
command = "sk"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rwx7
Comment options

Answer selected by rwx7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants