28 Commits

Author SHA1 Message Date
Petar Dobrev 7729e6e1ae kitten diff: add support for sticky header 2026-04-18 18:26:30 +03:00
Kovid Goyal d8af7e2c88 Add an option to control highlighting of moved lines 2026-03-12 12:59:46 +05:30
copilot-swe-agent[bot] f45345c7a7 Add colorMoved support to kitty diff kitten
Fixes #3241
Fixes #9644
2026-03-12 12:44:21 +05:30
copilot-swe-agent[bot] 1785873835 diff kitten: Use a words based algorithm for intra line changed region highlighting
Fixes #9598
2026-03-04 09:06:37 +05:30
Kovid Goyal fd5876b94e Use SIMD to replace C0 control codes in Go code 2025-07-21 08:54:22 +05:30
Kovid Goyal 28fce006d6 Make highlight code fully re-useable 2025-07-20 15:37:03 +05:30
Kovid Goyal c861259e3b Rename go module from kitty -> github.com/kovidgoyal/kitty
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
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