docs: Include cat in custom pagers examples#5328
Conversation
cat is the default git pager, and although not as sophisticated, it redraws faster than other pagers who suffer from the bug in jesseduffield#5327. Adding it to the docs will help new devs know that this is an option.
|
It doesn't make much sense to use I don't really think we need to document this though. |
|
Thanks, I didn’t know “nothing” was an option. I thought using cat was helpful because it doesn’t have the render issues of #5327. I’ll close this then and if others feel the same later feel free to mention that empty strong option. |
|
I search the issues looking exactly for how to configure the default pager as an option: I think it will be a great addition to the docs. I can provide a PR if you are interested. Adding here a single line will be fine for me. git:
pagers:
- pager: "" # default no pager
- pager: delta --dark --paging=never
- pager: ydiff -p cat -s --wrap --width={{columnWidth}}
colorArg: never
- externalDiffCommand: difft --color=always |
|
It's maybe even cleaner to add the default diff by adding an empty object to the list (i.e. I added this to the docs in #5656. |
cat is the default git pager, and although not as sophisticated, it redraws faster than other pagers who suffer from the bug in #5327. Adding it to the docs will help new devs know that this is an option.
PR Description
Please check if the PR fulfills these requirements
go generate ./...)