Skip to content

Newly changed custom pager setting in config.yml breaks custom pager #4972

@MurtadhaInit

Description

@MurtadhaInit

Describe the bug

So the schema in my config file recently showed me that using the paging key is now deprecated and that I need to change to pagers which is a list of pagers.
So I did, but now lazygit seems to not pick the pager (it's like there is no custom pager). And curiously reverting to the old setting still works.

This is the new (non-working) setting:

git:
  pagers:
      # see: delta --help
    - pager: delta --paging=never --side-by-side
      colorArg: always

And this is the old (still working) setting:

git:
  paging:
      # see: delta --help
    pager: delta --paging=never --side-by-side
    colorArg: always

To Reproduce

Steps to reproduce the behavior:
Updating old config files to use the new format as per the instructions in the docs.

Expected behavior

Custom pagers to work exactly as before, as nothing fundamentally changes except for the format in the config file.

Screenshots

Image Image

Version info:

commit=, build date=, build source=Homebrew, version=0.55.1, os=darwin, arch=arm64, git version=2.51.0
git version 2.51.0

Additional context

Nothing 😅 it was a simple change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions