jesseduffield / jesseduffield/lazygit

Using custom pager in full diffing panel / word wrapping in diff

Open
#1,384 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

Hello,
**Describe the bug**
My issue is diffing long lines:
![20210714_13h37m52s_grim](https://user-images.githubusercontent.com/123554/125615922-da47e758-43d6-4001-9bea-9fa2002fa595.png)

I tried changing the pager to ydiff (config from https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md) but it works when browsing the changed files, but not when staging hunks, it goes back to the standard diff. I suppose it is to stage hunks the lazygit's way?

I'm not sure if it's a bug or an issue with my config. I'm relatively new with lazygit.

My issue is that long lines don't wrap.

**To Reproduce**
Try diffing long lines

**Expected behavior**
Seeing the complete diff even for long lines

**Screenshots**
ydiff:

![20210714_13h29m14s_grim](https://user-images.githubusercontent.com/123554/125615517-2870240d-a142-4587-b78c-7dafc866bb94.png)

no more ydiff:

![20210714_13h29m27s_grim](https://user-images.githubusercontent.com/123554/125615550-7b095e45-f109-4c02-910b-5971c5dcc3a6.png)

**Desktop (please complete the following information):**
- OS: nixOS
- Lazygit Version v0.28.1

Kindest regards for any help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.