Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown style, '-snip' #3100

Open
varac opened this issue Oct 7, 2024 · 1 comment
Open

Unknown style, '-snip' #3100

varac opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@varac
Copy link

varac commented Oct 7, 2024

What steps will reproduce the bug?

Follow the README.md#output-style doc, and use the recommended

bat --style=full,-snip README.md 

What happens?

$ bat --style=full,-snip README.md
error: invalid value 'full,-snip' for '--style <components>': Unknown style, '-snip'

For more information, try '--help'.

What did you expect to happen instead?

I would expect the documented command to succeed.

How did you install bat?

sudo pacman -S bat


bat version and environment

Software version

bat 0.24.0 (fc95468)

Operating system

Linux 6.11.0-6-MANJARO

Command-line

bat --diagnostic 

Environment variables

SHELL=/bin/zsh
PAGER=nvimpager
LESS=<not set>
LANG=en_US.UTF-8
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=/home/varac/.config
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>

System Config file

Could not read contents of '/etc/bat/config': No such file or directory (os error 2).

Config file

# https://github.com/sharkdp/bat

# Uncomment the following line to disable automatic paging:
--paging=never

Custom assets metadata

Could not read contents of '/home/varac/.cache/bat/metadata.yaml': No such file or directory (os error 2).

Custom assets

'/home/varac/.cache/bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> nvimpager --version 
/usr/sbin/nvimpager: illegal option -- -
Usage: nvimpager [-acp] [--] [nvim options and files]
       nvimpager -h
       nvimpager -v

Command failed with exit code 2.

@varac varac added the bug Something isn't working label Oct 7, 2024
@einfachIrgendwer0815
Copy link
Contributor

Selecting style components using +/- syntax was introduced in #2929 (2616296). The PR is merged, but this feature has not been released yet and is therefore not part of bat v0.24.0.

bat v0.24.0 README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants