Use $PAGER for viewing files #12

Closed
opened 4 years ago by jab2870 · 2 comments
Owner

Currently uses bat which adds a dependency. Would be much better to use $PAGER
and fall back to cat which should be on most (if not all) systems

Currently uses bat which adds a dependency. Would be much better to use `$PAGER` and fall back to `cat` which should be on most (if not all) systems
Poster
Owner

Do this the same way as editor where the user can specify a flag which overrides
the environment variable

Do this the same way as editor where the user can specify a flag which overrides the environment variable
Poster
Owner

I am reluctant to make the pager use the environment variable by default because
bat cannot be set as the pager:
https://github.com/sharkdp/bat/pull/1343

Instead, I will use bat if it's available, then fall back to the pager variable

If the pager is specified with a flag, this will take precidence

I am reluctant to make the pager use the environment variable by default because bat cannot be set as the pager: https://github.com/sharkdp/bat/pull/1343 Instead, I will use bat if it's available, then fall back to the pager variable If the pager is specified with a flag, this will take precidence
jab2870 closed this issue 4 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: jab2870/knowledge-base#12
Loading…
There is no content yet.