jesseduffield.lazygit/pkg/commands/oscommands
Stefan Haller 8731d8a51b Rework the custom pager config (rename to diff renderer)
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.
2026-07-31 08:42:51 +02:00
..
cmd_obj.go Use ConPTY on Windows for pty-backed command execution 2026-07-03 18:47:15 +02:00
cmd_obj_builder.go Fix quoting of shell commands on Windows 2026-06-23 14:11:00 +02:00
cmd_obj_runner.go Wait for the streamed command's output goroutine before reading its buffers 2026-07-17 12:19:14 +02:00
cmd_obj_runner_test.go Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
cmd_obj_test.go Suppress optional locks by default again, except foreground refresh 2026-07-02 16:05:08 +02:00
copy.go Specify return value where named return value is used 2025-10-20 07:56:56 +02:00
dummies.go Remove empty directories after discarding files 2026-03-30 17:50:28 +02:00
fake_cmd_obj_runner.go Remove ICmdObj interface 2025-05-01 15:21:37 +02:00
gui_io.go Use first class task objects instead of global counter 2023-07-09 21:30:19 +10:00
new_shell_windows_test.go Add end-to-end test for shell command quoting on Windows 2026-06-23 14:11:00 +02:00
os.go Remove empty directories after discarding files 2026-03-30 17:50:28 +02:00
os_default_platform.go Abstract task command over *exec.Cmd 2026-07-03 18:47:15 +02:00
os_default_test.go Clean up build tags 2025-08-14 20:40:44 +02:00
os_test.go Fix quoting of shell commands on Windows 2026-06-23 14:11:00 +02:00
os_windows.go Abstract task command over *exec.Cmd 2026-07-03 18:47:15 +02:00
os_windows_test.go Fix quoting of shell commands on Windows 2026-06-23 14:11:00 +02:00
pty.go Add pty support on Windows via ConPTY 2026-07-03 18:47:15 +02:00
pty_unix.go Abstract pty startup behind a platform-specific primitive 2026-07-03 18:47:15 +02:00
pty_windows.go Rework the custom pager config (rename to diff renderer) 2026-07-31 08:42:51 +02:00
pty_windows_test.go Clamp ConPTY sizes to the 1x1 minimum that Windows accepts 2026-07-23 17:31:26 +02:00