Commit graph

14997 commits

Author SHA1 Message Date
Kovid Goyal
42e93d8caa
More work on scaled font rendering 2025-02-03 10:56:44 +05:30
Kovid Goyal
3dca2687d8
Make font rendering tests use a text font rather than system font 2025-02-03 10:56:44 +05:30
Kovid Goyal
850dcec4d7
Allow multiple box rendering chars per cell 2025-02-03 10:56:44 +05:30
Kovid Goyal
073d5c7340
Add test for quarter blocks 2025-02-03 10:56:44 +05:30
Kovid Goyal
b96da25380
More work on multicell font rendering 2025-02-03 10:56:44 +05:30
Kovid Goyal
8993386399
Store font related cell metrics in a single struct 2025-02-03 10:56:44 +05:30
Kovid Goyal
8030cbd361
Allow more subscales 2025-02-03 10:56:44 +05:30
Kovid Goyal
b1c80d212f
Allow non-width multicell code to fill multiple cells using native width algo 2025-02-03 10:56:44 +05:30
Kovid Goyal
844d538e40
When drawing text, skip past multiline chars 2025-02-03 10:56:44 +05:30
Kovid Goyal
5459f126c7
Fix out of bounds when nuking multiline char 2025-02-03 10:56:44 +05:30
Kovid Goyal
79a062466c
Fix render_box_cell test with odd block height 2025-02-03 10:56:44 +05:30
Kovid Goyal
35946f9386
Improve performance of processing wide chars
Store multi cell data in the CPUCell rather than in TextCache.
This sends the CPUCell size back to 12 but in benchmarks ASCII
performance is untouched and Unicode performace goes back to what it was
before multicell
2025-02-03 10:56:44 +05:30
Kovid Goyal
21871dcd58
Drop val access to CPUCell
Allows us to increase CPUCell beyond 8 bytes if needed
2025-02-03 10:56:44 +05:30
Kovid Goyal
383e1f8f57
Work on scaled rendering for box drawing chars 2025-02-03 10:56:43 +05:30
Kovid Goyal
47a1a9b83d
Prepare for scaled glyphs in glyph cache 2025-02-03 10:56:43 +05:30
Kovid Goyal
aa61563acd
Start work on rendering of scaled fonts 2025-02-03 10:56:43 +05:30
Kovid Goyal
394404a1ab
Add multicell tests for various edit operations 2025-02-03 10:56:43 +05:30
Kovid Goyal
e10df382f8
Tests for erasing characters 2025-02-03 10:56:43 +05:30
Kovid Goyal
8f0d291500
Delete chars with multicell tests 2025-02-03 10:56:43 +05:30
Kovid Goyal
23bb053fb4
Insert chars with multicell tests 2025-02-03 10:56:43 +05:30
Kovid Goyal
1ed4a349be
Clearance of multicell tests 2025-02-03 10:56:43 +05:30
Kovid Goyal
5e861ea5ac
Start work on testing multicell commands 2025-02-03 10:56:43 +05:30
Kovid Goyal
540e030f96
Start work on handling multicell escape code 2025-02-03 10:56:43 +05:30
Kovid Goyal
b5dff921c4
Start work on multicell support 2025-02-03 10:56:43 +05:30
Kovid Goyal
ac381d1221
... 2025-02-03 10:55:46 +05:30
Kovid Goyal
066ce9d056
Note that when using ./dev/sh on Linux the X11 development libraries must be installed
Fixes #8280
2025-02-03 10:53:33 +05:30
Kovid Goyal
93dc28aa78
version 0.39.1 2025-02-01 12:23:57 +05:30
Kovid Goyal
f7d804e066
Merge branch 'clone-env-black-list' of https://github.com/akinomyoga/kitty 2025-01-30 14:06:15 +05:30
Koichi Murase
e495aa02f3 clone-in-kitty: Exclude more environment variables from clone target 2025-01-30 16:18:47 +09:00
Kovid Goyal
4190206204
Merge branch 'fix_spelling' of https://github.com/alealex/kitty 2025-01-30 07:57:49 +05:30
aalekhin
683737899f fix spelling 2025-01-29 23:15:07 +03:00
Kovid Goyal
8264a38d98
Micro-optimization 2025-01-29 06:12:16 +05:30
Kovid Goyal
4f0f9b9aff
Fix #8262 2025-01-27 21:13:45 +05:30
Kovid Goyal
1f33677c1a
... 2025-01-27 09:12:15 +05:30
Kovid Goyal
979d3740df
Merge branch 'dependabot/go_modules/all-go-deps-0e07614b74' of https://github.com/kovidgoyal/kitty 2025-01-27 08:59:32 +05:30
dependabot[bot]
42630da17b
Bump github.com/bmatcuk/doublestar/v4 in the all-go-deps group
Bumps the all-go-deps group with 1 update: [github.com/bmatcuk/doublestar/v4](https://github.com/bmatcuk/doublestar).


Updates `github.com/bmatcuk/doublestar/v4` from 4.8.0 to 4.8.1
- [Release notes](https://github.com/bmatcuk/doublestar/releases)
- [Commits](https://github.com/bmatcuk/doublestar/compare/v4.8.0...v4.8.1)

---
updated-dependencies:
- dependency-name: github.com/bmatcuk/doublestar/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 03:22:54 +00:00
Kovid Goyal
040caec04c
... 2025-01-26 22:48:33 +05:30
Kovid Goyal
1266835ef7
Fix #8252 2025-01-26 17:58:54 +05:30
Kovid Goyal
b52894c0d3
... 2025-01-23 05:58:02 +05:30
Kovid Goyal
ea9afc6e89
watchers: Add a new event on_color_scheme_preference_change
Fixes #8246
2025-01-23 05:36:25 +05:30
Kovid Goyal
a754c8280f
Fix #8244 2025-01-22 19:01:55 +05:30
Kovid Goyal
0c47f81187
Remove special casing for Hyprland
Hyprland has now been fixed to send only a single fractional scale
event, so no need for special casing it.
2025-01-22 18:53:46 +05:30
Kovid Goyal
5e41de9505
... 2025-01-21 16:43:18 +05:30
Kovid Goyal
0527db876b
Wayland niri: Fix 250ms delay on startup when using scale 1
We special case Hyprland, hopefully the special casing can be removed
once https://github.com/hyprwm/Hyprland/issues/9126 is fixed.

Fixes #8236
2025-01-21 16:40:32 +05:30
Kovid Goyal
447fe503bf
... 2025-01-21 15:58:08 +05:30
Kovid Goyal
b256f56afb
... 2025-01-21 15:13:54 +05:30
Kovid Goyal
7346aca56d
Function to probe for Wayland compositor name
Maybe needed to workaround #8236
2025-01-21 15:10:07 +05:30
Kovid Goyal
5335d183c1
Merge branch 'dependabot/go_modules/all-go-deps-b3dadbe55f' of https://github.com/kovidgoyal/kitty 2025-01-20 08:53:41 +05:30
dependabot[bot]
1ba276a446
Bump github.com/bmatcuk/doublestar/v4 in the all-go-deps group
Bumps the all-go-deps group with 1 update: [github.com/bmatcuk/doublestar/v4](https://github.com/bmatcuk/doublestar).


Updates `github.com/bmatcuk/doublestar/v4` from 4.7.1 to 4.8.0
- [Release notes](https://github.com/bmatcuk/doublestar/releases)
- [Commits](https://github.com/bmatcuk/doublestar/compare/v4.7.1...v4.8.0)

---
updated-dependencies:
- dependency-name: github.com/bmatcuk/doublestar/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 03:16:15 +00:00
Kovid Goyal
643e534053
Do not call monotonic() when changing cursor position
monotonic() is extremely slow. This call was halving the CSI parsing
speed benchmark. Instead we use the time at which parsing of the current
input chunk was started. This should be within a few microseconds and
accurate enough for the cursor trail for which it is used.
2025-01-17 21:41:02 +05:30