Commit Graph

13 Commits

Author SHA1 Message Date
61132d242f fix: graphemes are not correctly highlighted
Graphemes don't all have the same width, not even when you use a monospace font.
For latin characters it usually works find to assume the same width. But emojis,
japanese or chinese characters have have different width. There are even some
ultra wide characters like 𒐫 or ﷽. There is also a thing
called 'half-width' character. E.g. the japanese 'a' can be ア or ア.

Fixed by actually computing the width of graphemes and using pixel.
2025-03-24 17:49:27 +01:00
9c64acf77e the same line cache was used for the file view and the filter view 2024-06-30 08:24:28 +02:00
be53c209ea cache lines to speed up rendering 2024-04-23 10:28:44 +02:00
b8b4b4e790 make the original file name known to the filter view 2024-03-26 18:12:42 +01:00
66d6a728cc make it possible to activate highlighter only for specific file types
In stage 1 we use a glob pattern matching the file name.
Stage 2 (which I will maybe implement some day) might use some additional magic byte sequence for file type detection.
2024-03-25 19:23:24 +01:00
07a6ec69fa make it possible to disable highlighters 2023-01-26 19:31:33 +01:00
d17c0a56f9 add missing return types 2023-01-21 09:42:31 +01:00
ed221d908d respect range limit when selecting all text 2022-12-17 19:28:06 +01:00
9c311f8c67 respect range limit when searching 2022-12-17 18:35:22 +01:00
a06a2d01f3 intermediate state after fixing the logfilemodel test 2022-12-17 10:06:15 +01:00
5df0dc0c82 remove obsolete method 2022-12-01 17:55:39 +01:00
44a1c77d3c cleanup 2022-08-28 14:13:29 +02:00
a640b35c87 rename ravenlog to krowlog
There is a database named RavenDB.
KrowLog starts with a K, which is a) distinctive and b) has an association to KDE.
2022-02-12 10:48:38 +01:00