Skip to content

gh pr diff could use default pager #1100

Closed

Description

@rainersigwald

Describe the feature or problem you’d like to solve

gh pr diff (#962) is awesome! But it produces colorized standard diffs, which aren't super pretty.

Proposed solution

I'd love it if it used my default configuration for core.pager, so I could get the nice formatting of delta or diff-so-fancy, as I do when I git diff.

Additional context

I'm working around this by passing to my pager explicitly:

image

Activity

  1. added
    enhancement
    on Jun 4, 2020
  2. vilmibm commented on Jun 4, 2020

    @vilmibm
    Contributor

    great idea and exactly the kind of improvement I was hoping to follow this work with 👍

  3. rainersigwald commented on Jun 4, 2020

    @rainersigwald
    ContributorAuthor

    I figured, since you explicitly said "doesn't use the pager" in the PR. I didn't realize the easy workaround until filing this so hopefully that's helpful to someone else in the mean time!

  4. added
    help wanted
    on Jul 20, 2020
  5. chenlishuai commented on Jul 24, 2020

    @chenlishuai

    I'm confused. If this function is implemented, can I use vimdiff to view diff?

  6. mmontes11 commented on Aug 15, 2020

    @mmontes11
    Contributor

    Hei there!

    I am working on this:
    #1534

  7. mmontes11 commented on Aug 15, 2020

    @mmontes11
    Contributor

    Hello @vilmibm :

    Changes are ready to review:
    #1534

    It's my second contribution to GitHub cli, so any feedback will be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions