21 Commits

Author SHA1 Message Date
Kovid Goyal
f3db7e7554 diff kitten: Automatically change colors on terminal color scheme change 2025-01-05 06:00:24 +05:30
Kovid Goyal
e34a899ea6 diff kitten: Automatically use dark/light color scheme based on the color scheme of the parent terminal
Fixes #8170
2025-01-04 12:57:33 +05:30
Kovid Goyal
627c80125b More linter fixes 2023-09-23 10:19:46 +05:30
Kovid Goyal
863adb3e8d Go: Fix parsing of nullable colors
Fixes #6629
2023-09-15 20:36:24 +05:30
Kovid Goyal
c99d55691d diff kitten: Add support for files that are identical apart from mode changes
Fixes #6611
2023-09-09 19:04:54 +05:30
Kovid Goyal
eb51d459ae diff kitten: Dont panic for empty changesets 2023-09-09 18:35:32 +05:30
Kovid Goyal
bfc15cfc3f Fix #6611 2023-09-09 18:24:26 +05:30
Kovid Goyal
5e6d020275 Show proper error message in diff when failing to load image 2023-05-24 22:47:14 +05:30
Kovid Goyal
e07f2df8d0 Fix rendering of file added/removed lines 2023-04-03 11:07:51 +05:30
Kovid Goyal
dfa41f01fd Fix panic caused by incorrectly constructed empty line
Also be more defensive in draw_screen() about rendering lines.
2023-04-02 10:18:23 +05:30
Kovid Goyal
e0cdc26e68 Fix placement of images in diff broken by new render layout 2023-03-30 11:21:28 +05:30
Kovid Goyal
c767f7b57f ... 2023-03-30 07:58:00 +05:30
Kovid Goyal
34526517de Allow passing multiple options to control how wrapping is done 2023-03-29 20:56:24 +05:30
Kovid Goyal
aebfdaa69a Refactor diff mouse selection to use new render layout 2023-03-29 14:32:36 +05:30
Kovid Goyal
468168b9de Refactor diff search to use new render layout 2023-03-29 13:22:34 +05:30
Kovid Goyal
3dbb830a0e Refactor diff rendering
Dont store full rendered lines, instead fill them up at actual draw
time. Makes implementing mouse selection and searching more robust.
2023-03-29 11:55:03 +05:30
Kovid Goyal
7ed7e82637 Use a filler char other than space 2023-03-28 18:01:04 +05:30
Kovid Goyal
45c1e36de9 More work on mouse selection 2023-03-28 08:10:29 +05:30
Kovid Goyal
80204c6056 Use join_half_lines in a few more places 2023-03-27 18:01:53 +05:30
Kovid Goyal
a22933afbc DRYer 2023-03-27 17:19:13 +05:30
Kovid Goyal
ff55121094 Move the kittens Go code into the kittens folder 2023-03-27 13:06:02 +05:30