mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
Add environment variable BAT_PAGING
This commit is contained in:
parent
f21d3502e1
commit
26111950b3
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
- Add environment variable `BAT_PAGING`, see #2629 (@einfachIrgendwer0815)
|
||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
|
|
||||||
- Fix `more` not being found on Windows when provided via `BAT_PAGER`, see #2570, #2580, and #2651 (@mataha)
|
- Fix `more` not being found on Windows when provided via `BAT_PAGER`, see #2570, #2580, and #2651 (@mataha)
|
||||||
|
@ -89,8 +89,8 @@ Options:
|
|||||||
|
|
||||||
--paging <when>
|
--paging <when>
|
||||||
Specify when to use the pager. To disable the pager, use --paging=never' or its
|
Specify when to use the pager. To disable the pager, use --paging=never' or its
|
||||||
alias,'-P'. To disable the pager permanently, set BAT_PAGER to an empty string. To control
|
alias,'-P'. To disable the pager permanently, set BAT_PAGING to 'never'. To control which
|
||||||
which pager is used, see the '--pager' option. Possible values: *auto*, never, always.
|
pager is used, see the '--pager' option. Possible values: *auto*, never, always.
|
||||||
|
|
||||||
--pager <command>
|
--pager <command>
|
||||||
Determine which pager is used. This option will override the PAGER and BAT_PAGER
|
Determine which pager is used. This option will override the PAGER and BAT_PAGER
|
||||||
|
@ -311,7 +311,7 @@ pub fn build_app(interactive_output: bool) -> Command {
|
|||||||
.long_help(
|
.long_help(
|
||||||
"Specify when to use the pager. To disable the pager, use \
|
"Specify when to use the pager. To disable the pager, use \
|
||||||
--paging=never' or its alias,'-P'. To disable the pager permanently, \
|
--paging=never' or its alias,'-P'. To disable the pager permanently, \
|
||||||
set BAT_PAGER to an empty string. To control which pager is used, see the \
|
set BAT_PAGING to 'never'. To control which pager is used, see the \
|
||||||
'--pager' option. Possible values: *auto*, never, always."
|
'--pager' option. Possible values: *auto*, never, always."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -142,6 +142,7 @@ pub fn get_args_from_env_vars() -> Vec<OsString> {
|
|||||||
("--tabs", "BAT_TABS"),
|
("--tabs", "BAT_TABS"),
|
||||||
("--theme", "BAT_THEME"),
|
("--theme", "BAT_THEME"),
|
||||||
("--pager", "BAT_PAGER"),
|
("--pager", "BAT_PAGER"),
|
||||||
|
("--paging", "BAT_PAGING"),
|
||||||
("--style", "BAT_STYLE"),
|
("--style", "BAT_STYLE"),
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -255,6 +255,7 @@ fn invoke_bugreport(app: &App, cache_dir: &Path) {
|
|||||||
"LANG",
|
"LANG",
|
||||||
"LC_ALL",
|
"LC_ALL",
|
||||||
"BAT_PAGER",
|
"BAT_PAGER",
|
||||||
|
"BAT_PAGING",
|
||||||
"BAT_CACHE_PATH",
|
"BAT_CACHE_PATH",
|
||||||
"BAT_CONFIG_PATH",
|
"BAT_CONFIG_PATH",
|
||||||
"BAT_OPTS",
|
"BAT_OPTS",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user