|
Trying to config skim How do I pass the original JSONL line to |
Answered by
pamburus
May 18, 2026
Replies: 1 comment 1 reply
|
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, So, currently you can configure only the opposite. You can view raw JSON/logfmt in the main pain and view it formatted with # Pager profile for `sk`.
[[pager.profiles]]
name = "skim"
command = "sk"
delimiter = "newline"
args = [
"--ansi",
"--exact",
"--multi",
"--no-sort",
"--no-bold",
"--highlight-line",
"--bind=ctrl-q:abort",
"--bind=enter:toggle-raw",
"--preview", "printf %s\\\\n {+} | hl -Pc",
"--preview-window", "right:50%:wrap"
]And the command: HL_PAGER=@skim hl -r example.log |
1 reply
Answer selected by
rwx7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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,
hlcould provide raw text to the pager and a command to format raw text which would callhlagain. But I doubt any pager supports running additional commands to preprocess the input data except for the "preview" window likefzfandskdo.So, currently you can configure only the opposite. You can view raw JSON/logfmt in the main pain and view it formatted with
hlin the preview pane.Here is an example: