mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
For a long time lazygit has used the term "custom pager" to refer to what's really a "diff renderer". A pager is a program that allows you to view output page by page (hence the name), e.g. less; lazygit's custom diff renderers are not pagers. It used the term only because the feature is implemented using git's GIT_PAGER env var, but that's an implementation detail. Rename the 'git.pagers' config to 'git.diffRenderers', and restructure its elements while we're at it to make things clearer: - Add a 'type' field to explicitly specify which type of diff renderer it is (the two fundamentally different ones are 'stdinFilter' and 'extDiff'). - Add a third type, 'rawGit', which has an 'args' field that makes it easy to use 'git --color-words' as a custom renderer - Unify the old 'pager' and 'externalDiffCommand' fields to a single 'command' field for both types Existing config files are migrated automatically. |
||
|---|---|---|
| .. | ||
| yaml_utils | ||
| color.go | ||
| color_test.go | ||
| date.go | ||
| date_test.go | ||
| dummies.go | ||
| errors.go | ||
| formatting.go | ||
| formatting_test.go | ||
| history_buffer.go | ||
| history_buffer_test.go | ||
| io.go | ||
| io_test.go | ||
| lines.go | ||
| lines_test.go | ||
| once_writer.go | ||
| once_writer_test.go | ||
| rebase_todo.go | ||
| rebase_todo_test.go | ||
| regexp.go | ||
| regexp_test.go | ||
| search.go | ||
| search_test.go | ||
| slice.go | ||
| slice_test.go | ||
| string_pool.go | ||
| string_stack.go | ||
| template.go | ||
| template_test.go | ||
| thread_safe_map.go | ||
| thread_safe_map_test.go | ||
| utils.go | ||
| utils_test.go | ||