Use $PAGER for viewing files #12

Closed
opened 2020-12-21 18:30:18 +00:00 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
Author
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
Author
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
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jab2870/knowledge-base#12
No description provided.