Skip to content

bat --theme-{light,dark} option is ignored #4549

@injust

Description

@injust

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.66.0 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

I have this in my bat config file:

--theme-light="Catppuccin Latte"
--theme-dark="Catppuccin Mocha"

fzf ignores the --theme-{light,dark} options, with no error message. However, if I use --theme instead, then the preview uses the specified theme.

This is not specific to Catppuccin or other manually installed themes. For an easier repro (assume your system is in dark mode), compare the following commands:

fzf --preview "bat --color=always --style=numbers --theme=GitHub {}"
fzf --preview "bat --color=always --style=numbers --theme-dark=GitHub {}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions