Commit graph

8222 commits

Author SHA1 Message Date
Kovid Goyal
56b49c49fb
... 2025-03-28 11:49:47 +05:30
Kovid Goyal
2aa2607adc
... 2025-03-25 17:13:54 +05:30
Kovid Goyal
3e50588525
Add a test for PUA recog 2025-03-25 16:52:01 +05:30
Kovid Goyal
fd2bbf57e3
Make unicode category data useable in other modules 2025-03-25 16:35:09 +05:30
Kovid Goyal
294de16898
Use ms table for remaining UCD lookups 2025-03-25 15:41:34 +05:30
Kovid Goyal
aad58cf703
Declare CharProps just once 2025-03-25 14:08:47 +05:30
Kovid Goyal
d429f732e1
DRYer 2025-03-25 13:45:56 +05:30
Kovid Goyal
b66a763ddf
Use a 3 stage table for Unicode properties
Halves the data size and reduces source code size by 50x
Shows no significant runtime performance effect.
Allows for easily adding more properties to the table in the future
2025-03-25 13:16:59 +05:30
Kovid Goyal
9f7643078c
Use unicode multi-table for remaining hot path lookups
Results in a 15% improvement in the unicode throughput benchmark
2025-03-24 15:04:33 +05:30
Kovid Goyal
3d0e45ace8
Use the new multi-stage unicode table for wcwidth 2025-03-24 14:20:40 +05:30
Kovid Goyal
7697a1650d
Add is_emoji_presentation_base to char props table 2025-03-24 13:55:49 +05:30
Kovid Goyal
aa8c32006f
Implement grapheme seg algo in Go 2025-03-22 14:54:58 +05:30
Kovid Goyal
583a858769
Use a multistage lookup table for grapheme segmentation 2025-03-22 11:50:04 +05:30
Kovid Goyal
272045287a
Fix #8459 2025-03-21 22:20:02 +05:30
Kovid Goyal
f57f3d9909
Fix #8464 2025-03-21 19:55:45 +05:30
Kovid Goyal
8417e42d8b
Fix a regression in the previous release causing a crash when the underline thickness of the font is zero
Fixes #8443
2025-03-21 15:32:25 +05:30
Kovid Goyal
1b0dc5ef3d
Fix #8461 2025-03-21 13:07:40 +05:30
Kovid Goyal
ce5cfdd9ca
kitty +open: Ask for confirmation when running executables
Workaround for badly designed program that try to open links in
untrusted documents that point to executables on the local system.
They should really not be doing that, but, since such programs do exist,
let's be safe by default.

Users that use better designed programs and want to disable the
confirmations can do so by writing their own launch-actions.conf
2025-03-20 14:00:09 +05:30
Kovid Goyal
4848c63796
Use cast() instead of type: ignore 2025-03-20 11:41:46 +05:30
Kovid Goyal
ca1555d12e
Avoid spinning up the python interpreter just for running a shebang 2025-03-20 11:36:59 +05:30
Kovid Goyal
ce2a543c43
... 2025-03-20 08:34:57 +05:30
Kovid Goyal
f20ad2fcb1
... 2025-03-19 23:17:33 +05:30
Kovid Goyal
c6db9b0b21
Move text_fg_override code into vertex shader
This should be a ~100x speedup (depending on pixels per cell) for using this code. Note that it also means
that color emoji do not have their colors overridden. This makes sense
since overriding color sin them is not desired anyway and even otherwise
the performance benefits are too large.
2025-03-19 22:27:18 +05:30
Kovid Goyal
5ec653bf86
DRYer 2025-03-19 22:14:56 +05:30
Kovid Goyal
3d02c272ac
Fix spurious reload of shaders because of text_fg_override_threshold 2025-03-19 22:04:33 +05:30
Kovid Goyal
1ba47749f4
Use literal type for text_fg_override_threshold 2025-03-19 21:51:54 +05:30
Kovid Goyal
0db9b882fe
Cleanup previous PR 2025-03-19 21:25:02 +05:30
Kovid Goyal
80db9b4734
Merge branch 'min-contrast-ratio' of https://github.com/arne314/kitty 2025-03-19 21:02:29 +05:30
Kovid Goyal
5f8c8a30fc
... 2025-03-18 14:18:09 +05:30
Kovid Goyal
2bab0b7b18
version 0.40.1 2025-03-18 08:28:18 +05:30
Kovid Goyal
140b6d2cdf
We need a per type in flight tracker for OSC 52
Since a single request can now write to multiple destinations
2025-03-18 08:13:35 +05:30
Kovid Goyal
5754fa2260
OSC 52: Fix specifying both clipboard and primary in OSC 52 requests not supported 2025-03-18 08:07:05 +05:30
arne314
99016720c3 perf: branchless min contrast ratio 2025-03-15 13:42:31 +01:00
arne314
e1b454e49e fix: generate config min contrast 2025-03-15 13:35:32 +01:00
arne314
40ef6b4f37 config: number with unit for min contrast ratio 2025-03-14 14:05:34 +01:00
arne314
a6fcdf1964 minor: replace boolean in mix with step 2025-03-14 12:32:57 +01:00
arne314
d09327581e docs: add min contrast ratio 2025-03-13 15:32:42 +01:00
arne314
a6379d9003 fix: prevent nan/inf in hsluv conversion 2025-03-13 15:01:43 +01:00
Kovid Goyal
0d866b1f13
Add tests for grapheme segmentation
Test data provided by Unicode organisation
2025-03-13 13:48:35 +05:30
Kovid Goyal
9c1c141775
Start work on grapheme segmentation algorithm 2025-03-13 11:19:54 +05:30
Kovid Goyal
98f9a568ce
Add Extended_Pictographic property 2025-03-13 10:01:41 +05:30
Kovid Goyal
039af78785
Add Indic Conjunct Break data 2025-03-13 09:18:42 +05:30
Kovid Goyal
1ee0b3369d
Fix GBP generation 2025-03-13 08:37:52 +05:30
Kovid Goyal
9c7c432560
macOS: Fix a regression causing a crash when using focus_follows_mouse
Fixes #8437
2025-03-13 08:36:40 +05:30
Kovid Goyal
dc625c5e0c
Add grapheme break properties when generating wcwidth data 2025-03-13 07:06:46 +05:30
Kovid Goyal
41a3519ebb
Micro-optimization 2025-03-12 16:49:12 +05:30
Kovid Goyal
fd8172c04d
Fix a regression in the previous release that caused empty lines to be skipped when copying text from a selection
Fixes #8435
2025-03-12 16:47:13 +05:30
Kovid Goyal
96d5c9c7c6
A new option to clear selections when they no longer reflect the contents of the clipboard 2025-03-12 11:41:27 +05:30
Kovid Goyal
b34a88065b
Wire up clipboard lost events 2025-03-12 09:26:36 +05:30
arne314
167aa4c270 perf: branchless hsluv conversion 2025-03-11 17:26:11 +01:00