Skip to content

fix: do not page --list-themes output - #3880

Open
drkemp187 wants to merge 1 commit into
sharkdp:masterfrom
drkemp187:fix/list-themes-ignore-paging-always
Open

fix: do not page --list-themes output#3880
drkemp187 wants to merge 1 commit into
sharkdp:masterfrom
drkemp187:fix/list-themes-ignore-paging-always

Conversation

@drkemp187

Copy link
Copy Markdown

Summary

When BAT_OPTS (or the config file) includes --paging=always, bat --list-themes became unusable — the theme list was forced through the pager and theme names were hard or impossible to see.

Changes

  • Force PagingMode::Never inside list_themes so this meta-command always prints the full list in one shot
  • Integration test: BAT_OPTS=--paging=always still lists theme names and does not invoke the pager

Fixes #1618

Test plan

  • BAT_OPTS='--paging=always --pager=less' bat --list-themes prints theme names without entering less
  • Existing list_themes_* integration tests pass
  • New regression test list_themes_ignores_paging_always_from_bat_opts passes

When BAT_OPTS (or config) set --paging=always, --list-themes became
unusable: the theme list went through the pager one screen at a time
and theme names were hard to see.

Force paging off for this meta-command so the full theme list always
prints to the terminal in one shot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--list-themes + BAT_OPTS can be problematic

1 participant