Skip to content

Added leading indents causes *Delta* to stop working as a pager #1387

@stevenxxiu

Description

@stevenxxiu

Affected Version

paru -V

paru v2.1.0 - libalpm v15.0.0

Description

In Paru v2.1.0, indents are added to the diff at https://github.com/Morganamilo/paru/blob/v2.1.0/src/install.rs#L1762. This causes external pagers like Delta to fail. Paru v2.0.4 didn't have indents.

Output

Removing the leading indent manually this way in /etc/paru.conf works, but this is more of a hack. I think it's best for them to not be added in the first place for external pagers.

Pager = sh -c 'sed --expression="s/^    //g" | delta'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions