lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Color codes at the top/end of pager

Open gruvw opened this issue 2 years ago • 2 comments

Describe the bug

There are color codes printed at the top and end of the git show output.

Note: this does not happen in a regular terminal window (outside lazygit).

image

Expected behavior No color codes / weird text.

Should be exactly like in a regular terminal window:

git show image

Version info:

  • Run lazygit --version and paste the result here: commit=5e388e21c8ca6aa883dbcbe45c47f6fdd5116815, build date=2023-08-07T14:05:48Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.34.1
  • Run git --version and paste the result here: git version 2.34.1

Additional context

  • I use Kitty: kitty 0.21.2
  • I use delta as a pager: delta 0.16.5
  • I use bat: bat 0.24.0
  • I use Ubuntu 22.04 LTS

See my configs:

  • Lazygit: https://github.com/gruvw/.dotfiles/blob/main/lazygit/.config/lazygit/config.yml
  • Kitty: https://github.com/gruvw/.dotfiles/blob/main/kitty/.config/kitty/kitty.conf
  • Bat: https://github.com/gruvw/.dotfiles/tree/main/bat/.config/bat
  • Git / Delta: https://github.com/gruvw/.dotfiles/blob/main/git/.gitconfig

gruvw avatar Jan 02 '24 14:01 gruvw

Could you try with --dark added to pager in your lazygit config? Same as in docs here: https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md#delta I had similar issue which disappeared after adding this flag.

mtvrsh avatar Apr 01 '24 16:04 mtvrsh

This should no longer be necessary with the 0.41.0 version though.

stefanhaller avatar Apr 01 '24 16:04 stefanhaller