What steps will reproduce the bug?
- Open a large file (~100k lines)
- Seek to the end of the file with
shift + G
What happens?
Seeking to the end of /var/log/pacman.log (94000 lines) using bat takes over 25 seconds on my machine.
What did you expect to happen instead?
Seeking to the end of the same file with less is immediate. I expect the same behavior from the bat pager.
How did you install bat?
sudo pacman -Syu bat
bat version and environment
Software version
bat 0.26.1 (v0.25.0-402-g979ba226)
Operating system
- OS: Linux (Arch Linux)
- Kernel: 7.0.14-zen1-1-zen
Command-line
bat /var/log/pacman.log --diagnostic
Environment variables
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=truecolor
LANG=en_US.UTF-8
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=/bin/bash
TERM=xterm-256color
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>
System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Custom assets metadata
Could not read contents of '/home/kodnisse/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/kodnisse/.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
> less --version
less 704 (PCRE2 regular expressions)
Copyright (C) 1984-2026 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
What steps will reproduce the bug?
shift + GWhat happens?
Seeking to the end of
/var/log/pacman.log(94000 lines) usingbattakes over 25 seconds on my machine.What did you expect to happen instead?
Seeking to the end of the same file with
lessis immediate. I expect the same behavior from thebatpager.How did you install
bat?sudo pacman -Syu batbat version and environment
Software version
bat 0.26.1 (v0.25.0-402-g979ba226)
Operating system
Command-line
Environment variables
System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Custom assets metadata
Could not read contents of '/home/kodnisse/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/kodnisse/.cache/bat' not found
Compile time information
Less version