Kovid Goyal
ecf7f0cab0
kitten diff: Fix incorrect rendering if diff completes before terminal responds to capabilities query
2025-09-02 11:29:55 +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
9068bbaba9
Make code to highlight file re-useable
2025-07-20 10:32:31 +05:30
Kovid Goyal
d1faccdd1c
Loop API print proper stack traces for panics in go routines
2025-06-01 12:51:59 +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
b5cbb501a4
Use the base name of the named pipe for the created temp file
2025-05-03 16:03:06 +05:30
Kovid Goyal
7ef2fe53e0
Avoid extra stat()
2025-05-03 15:55:36 +05:30
Kovid Goyal
a59a347903
diff kitten: Allow diffing named pipes
...
Fixes #8597
2025-05-03 15:53:29 +05:30
Kovid Goyal
e42d410ee4
Move cli spec parsing code into simple module
2025-04-28 09:20:10 +05:30
Kovid Goyal
4b4bfca007
...
2025-04-06 09:16:42 +05:30
bilbofroggins
2d462b40b7
Update ui.go
2025-04-05 19:24:17 -04:00
bilbofroggins
fd14e103ef
Update main.py
2025-04-05 19:21:38 -04:00
Kovid Goyal
da1626090a
Update codebase to Python 3.10 using pyupgrade
2025-02-03 10:56:50 +05:30
Kovid Goyal
081c061538
Clarify prefix usage
2025-01-16 11:52:37 +05:30
Kovid Goyal
7a9e5d9dcb
...
2025-01-16 11:50:43 +05:30
Kovid Goyal
2dc6300f55
Fix #8205
2025-01-09 11:29:31 +05:30
Kovid Goyal
2d02ff1c5f
Implement using effective kitty config options for kittens
...
Also centralise reading of kitty options
2025-01-05 20:16:43 +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
98c1e0f7aa
Allow reusing the token from chroma lexer
2025-01-04 17:20:08 +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
134271be93
diff kitten: Abort when run inside a terminal that does not support the kitty keyboard protocol
...
Fixes #8185
2025-01-03 21:34:38 +05:30
Jackie Li
2208b3be3a
diff kitten: fix mouse move down up selection
2024-10-23 19:12:25 +01:00
Kovid Goyal
8eb0b556b7
diff kitten: Fix a regression that broke diffing against remote files
...
Fixes #7797
2024-08-28 11:00:42 +05:30
Jackie Li
bbe29dbc7b
[diff kitten] move next/prev file
2024-07-31 16:11:38 +01:00
Kovid Goyal
405f5ce148
Use stdlib maps/slices
2024-06-24 07:54:13 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
627c80125b
More linter fixes
2023-09-23 10:19:46 +05:30
Kovid Goyal
1a32e62ebf
More linter fixes
2023-09-18 21:07:39 +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
4f72bb9894
Replace utils.Once with stdlib sync.OnceValue
2023-08-09 12:08:42 +05:30
Kovid Goyal
341d845b9a
Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
...
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal
93ae6e962f
Fix infinite loop in text for current mouse selection
2023-07-24 12:56:02 +05:30
Kovid Goyal
e59e42a6c2
simplify API of utils.Once
2023-05-26 22:42:07 +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
8f96395f74
diff kitten: Fix a regression in 0.28.0 that broke using relative paths as arguments to the kitten
...
Fixes #6235
2023-05-03 08:34:46 +05:30
Kovid Goyal
3ee77a3a57
Fix #6154
2023-04-04 21:18:27 +05:30
Kovid Goyal
e07f2df8d0
Fix rendering of file added/removed lines
2023-04-03 11:07:51 +05:30
Kovid Goyal
bca67cde6f
Fix default for syntax_aliases not being respected
2023-04-02 15:07:41 +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
e73282ceb0
Only send graphics protocol commands if there are actual images to diff
2023-03-30 11:06:44 +05:30
Kovid Goyal
9919767aef
Remove unused code
2023-03-30 10:26:39 +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
7169a89591
Add shortcuts for copying to clipboard
2023-03-29 19:56:08 +05:30
Kovid Goyal
37edc728a9
Implement drag scrolling for the diff kitten
2023-03-29 17:14:13 +05:30