You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bat version 0.25 breaks the way long pathnames are wrapped within a wide terminal when running inside the fzf preview window. Version 0.24 handles this correctly.
Even though the terminal is approximately 200 characters wide, the pathname wraps prematurely.
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
--theme=Coldark-Dark
Custom assets metadata
Could not read contents of '/home/precor/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/precor/.cache/bat' not found
Compile time information
Profile: release
Target triple: x86_64-unknown-linux-musl
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 551 (GNU regular expressions)
Copyright (C) 1984-2019 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: http://www.greenwoodsoftware.com/less
The text was updated successfully, but these errors were encountered:
bat
version 0.25 breaks the way long pathnames are wrapped within a wide terminal when running inside the fzf preview window. Version 0.24 handles this correctly.Even though the terminal is approximately 200 characters wide, the pathname wraps prematurely.
What steps will reproduce the bug?
Install fzf. I am using version 0.57.
Run the following commands:
What happens? (Version 0.25)
The pathname wraps prematurely, even though the terminal is wide enough to accommodate the entire length.
What did you expect to happen instead? (Version 0.24)
The latter screenshot was captured using
bat
version 0.24, where the pathname is displayed correctly without premature wrapping.Workaround
You can manually pass the
--terminal-width
option tobat
using the value of$FZF_PREVIEW_COLUMNS
within your preview command.How did you install
bat
?bat version and environment
Ubuntu 20.04 LTS.
Software version
bat 0.25.0 (25f4f96)
Operating system
Linux 5.15.0-130-generic
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/precor/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/precor/.cache/bat' not found
Compile time information
Less version
The text was updated successfully, but these errors were encountered: