sharkdp/bat

Theme Preview just prints theme name

p1r473 opened this issue · 0 comments

What steps will reproduce the bug?

  1. type bat --list-themes | fzf --preview="bat --theme={} --color=always /var/log/lighttpd/access-pihole.log"

What happens?
The theme is printed. The file is not previewed with the theme
...

What did you expect to happen instead?
The file is previewed in the theme
...

How did you install bat?

apt install bat


bat version and environment

/tmp ❯ ./info.sh                                                                                                                                                           root@Harbormaster
system
------

**$ uname -srm**
Linux 6.6.28+rpt-rpi-2712 aarch64

**$ lsb_release -a**
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

bat
---

**$ batcat --version**
bat 0.22.1

**$ env**
PAGER=less

bat_config
----------

bat_wrapper
-----------

No wrapper script for 'bat'.

No wrapper script for 'batcat'.

bat_wrapper_function
--------------------

**$ /bin/zsh --login -i -c type bat**

image

edit: I updated via the .deb file and it works fine in latest bat 0.24.0