Commit Graph

14823 Commits

Author SHA1 Message Date
Kovid Goyal
a855bcf9dc ... 2024-11-28 22:37:20 +05:30
Kovid Goyal
3964e9e9ef Run bencmark on macOS as well 2024-11-28 22:25:52 +05:30
Kovid Goyal
524fb0a9c9 Run benchmark script in Linux CI 2024-11-28 21:56:21 +05:30
Kovid Goyal
8e388acab7 Add some cursor tracking tests 2024-11-27 20:33:56 +05:30
Kovid Goyal
778344a439 Fix enlarging window when a long line is wrapped between the first line of the scrollback buffer and the screen inserting a spurious newline
Fixes #7033
2024-11-27 20:08:27 +05:30
Kovid Goyal
a5f70fbee5 ... 2024-11-27 11:24:27 +05:30
Kovid Goyal
cf2aaaf52f remote_control_password: Fix using a password without any actions not working
Fixes #8082
2024-11-27 01:56:17 +05:30
Kovid Goyal
8b8b618418 Merge branch 'patch-1' of https://github.com/gpanders/kitty 2024-11-26 20:45:35 +05:30
Gregory Anders
3c852a517b Correct OSC definition in color control protocol 2024-11-26 09:08:24 -06:00
Kovid Goyal
826a869c96 Cleanup previous PR 2024-11-25 11:33:38 +05:30
Kovid Goyal
b522faa875 Merge branch 'more_panel_options' of https://github.com/robin-carlier/kitty 2024-11-25 11:30:34 +05:30
Kovid Goyal
4118bfc8ee Change algorithm for y position of dashed/dotted underlines
Make the inner loop faster and ensure that the same logic for y-position
and thickness is used as for the straight underline. Fixes #8074
2024-11-25 11:07:56 +05:30
Kovid Goyal
143705f2a7 Specify filter explicitly when extracting tarfiles in ci script 2024-11-24 21:53:33 +05:30
Kovid Goyal
e5cb67b9b3 Fix build on macOS 2024-11-24 21:44:48 +05:30
Kovid Goyal
a3a0684cf5 Merge branch 'fix-build' of https://github.com/krobelus/kitty 2024-11-24 21:43:53 +05:30
Johannes Altmanninger
9ab0c8575e Fix Python.h being included after system headers
My "./dev.sh build" failed with

    Compiling kitty/screen.c ...
    gcc -MMD -DNDEBUG -DPRIMARY_VERSION=4000 -DSECONDARY_VERSION=37 -DXT_VERSION="0.37.0" -I/home/johannes/git/kitty/dependencies/linux-amd64/include -Wextra -Wfloat-conversion -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11 -pedantic-errors -Werror -O3 -fwrapv -fstack-protector-strong -pipe -fvisibility=hidden -fno-plt -fPIC -D_FORTIFY_SOURCE=2 -flto -fcf-protection=full -march=native -mtune=native -pthread -I/home/johannes/git/kitty/dependencies/linux-amd64/include/libpng16 -I/home/johannes/git/kitty/dependencies/linux-amd64/include -I/home/johannes/git/kitty/dependencies/linux-amd64/include -I/home/johannes/git/kitty/dependencies/linux-amd64/include -I/home/johannes/git/kitty/dependencies/linux-amd64/include/freetype2 -I/home/johannes/git/kitty/dependencies/linux-amd64/include/libpng16 -I/usr/include/uuid -I/home/johannes/git/kitty/dependencies/linux-amd64/include/harfbuzz -I/home/johannes/git/kitty/dependencies/linux-amd64/include/freetype2 -I/home/johannes/git/kitty/dependencies/linux-amd64/include/libpng16 -I/home/johannes/git/kitty/dependencies/linux-amd64/include -I/home/johannes/git/kitty/dependencies/linux-amd64/include/python3.12 -c kitty/screen.c -o build/fast_data_types-kitty-screen.c.o
    In file included from /home/johannes/git/kitty/dependencies/linux-amd64/include/python3.12/Python.h:12,
                     from kitty/data-types.h:11,
                     from kitty/text-cache.h:10,
                     from kitty/line.h:10,
                     from kitty/history.h:10,
                     from kitty/lineops.h:9,
                     from kitty/fonts.h:9,
                     from kitty/screen.c:19:
    /home/johannes/git/kitty/dependencies/linux-amd64/include/python3.12/pyconfig.h:1875:9: error: "_POSIX_C_SOURCE" redefined
     1875 | #define _POSIX_C_SOURCE 200809L
          |         ^~~~~~~~~~~~~~~
    In file included from /usr/include/bits/libc-header-start.h:33,
                     from /usr/include/stdint.h:26,
                     from /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/include/stdint.h:9,
                     from kitty/charsets.h:9,
                     from kitty/screen.c:17:
    /usr/include/features.h:329:10: note: this is the location of the previous definition
      329 | # define _POSIX_C_SOURCE 199506L
          |          ^~~~~~~~~~~~~~~
    The following build command failed: /home/johannes/git/kitty/dependencies/linux-amd64/bin/python setup.py develop
    exit status 1

[Python docs](https://docs.python.org/3/c-api/intro.html) say:

> Since Python may define some pre-processor definitions which affect
> the standard headers on some systems, you must include Python.h
> before any standard headers are included.

Make it so. Since data-types.h is already included first in a lot of
*.c and *.h files, let's use that one.
Also fix the includes in launcher.

This is similar to commit 8e84b2145 (Re-order includes for
"_POSIX_C_SOURCE", 2018-06-02).

Also add an explicit error for this case, to make the resolution more
obvious? Here's the error when I try to include <stdlib.h> in screen.c:

    In file included from kitty/screen.c:14:
    kitty/data-types.h:11:2: error: #error "Must include \"data-types.h\" before any system headers"
       11 | #error "Must include \"data-types.h\" before any system headers"
          |  ^~~~~
    In file included from /home/johannes/git/kitty/dependencies/linux-amd64/include/python3.12/Python.h:12,
                     from kitty/data-types.h:14:
    /home/johannes/git/kitty/dependencies/linux-amd64/include/python3.12/pyconfig.h:1875:9: error: "_POSIX_C_SOURCE" redefined
     1875 | #define _POSIX_C_SOURCE 200809L
          |         ^~~~~~~~~~~~~~~
    In file included from /usr/include/bits/libc-header-start.h:33,
                     from /usr/include/stdlib.h:26,
                     from kitty/screen.c:13:
    /usr/include/features.h:329:10: note: this is the location of the previous definition
      329 | # define _POSIX_C_SOURCE 199506L
          |          ^~~~~~~~~~~~~~~
    The following build command failed: /home/johannes/git/kitty/dependencies/linux-amd64/bin/python setup.py develop
    exit status 1
2024-11-24 16:52:49 +01:00
Robin Carlier
2005069f90 Panel: fix height, exclusive zone flag, better helptext 2024-11-24 10:48:37 +01:00
Kovid Goyal
cb2e1fcd04 Graphics protocol: Fix delete by number not deleting newest image with the specified number
Fixes #8071
2024-11-24 10:11:34 +05:30
Kovid Goyal
0eaf44d33d Add tests for strip_csi with multibyte 2024-11-24 09:28:21 +05:30
Kovid Goyal
ebb733bad0 Wayland: Pass valid UTF-8 as title
When stripping CSI sequences from the title, dont mutilate interleaved
multi-byte UTF-8 sequences.

Fixes #8067
2024-11-24 09:06:46 +05:30
Robin Carlier
00d67a6557 Panel: add focus-policy option 2024-11-23 21:07:57 +01:00
Robin Carlier
5f1c603220 Panel: add options for margin 2024-11-23 21:07:57 +01:00
Robin Carlier
ce2bcbb92d Panel: add a edge=none option 2024-11-23 21:07:57 +01:00
Robin Carlier
4eb8e6052f Panel: choose the display layer 2024-11-23 21:07:57 +01:00
Kovid Goyal
e625f0aa02 See if dropping pkgconf fixes CI build 2024-11-23 19:48:05 +05:30
Kovid Goyal
0e7e8a5a15 add a comment documenting previous PR 2024-11-23 19:40:13 +05:30
Kovid Goyal
4b0cee9e59 Merge branch 'cursor_trail' of https://github.com/jinhwanlazy/kitty 2024-11-23 19:37:46 +05:30
Rick Choi
5075c3bd41 Fix: Ensure minimum 1ms wait for cursor trail to prevent input blocking 2024-11-23 21:17:50 +09:00
Kovid Goyal
d5356804c8 ... 2024-11-23 12:06:39 +05:30
Kovid Goyal
a87ccbf8e5 Add some combining chars to the benchmark 2024-11-23 12:02:59 +05:30
Kovid Goyal
f82c1a942e ... 2024-11-19 12:21:34 +05:30
Kovid Goyal
30ee2f3e10 Add chawan to integrations 2024-11-19 12:07:22 +05:30
Kovid Goyal
7dc6a6a660 Document the miscellaneous protocol extensions kitty uses 2024-11-19 11:51:21 +05:30
Kovid Goyal
2436c5acfe clipboard kitten: Fix a bug causing kitten to hang in filter mode when input data size is not divisible by 3 and larger than 8KB
Fixes #8059
2024-11-19 11:24:59 +05:30
Kovid Goyal
4cb190130f Document why we explicitly turn off in band resize 2024-11-19 08:08:35 +05:30
Kovid Goyal
5955284cbf Merge branch 'reset-2048' of https://github.com/rockorager/kitty 2024-11-19 08:08:31 +05:30
Tim Culverhouse
4b354fbd30 tui: explicitly turn off in-band resize mode
Explicitly turn off in-band resize notifications if they were requested
as part of the loop. Kitty implicitly resets this mode when `XTRESTORE`
(`CSI ? r`) is seen, however some terminals implementing mode 2048
(eg foot and Ghostty) follow the xterm behavior of only restoring the
state of explicitly passed modes.

Some of the kittens have become very useful outside of just Kitty
(`show-key`, for example). Add an explicit reset of mode 2048 to support
the behavior of other terminal emulators.
2024-11-18 10:51:14 -06:00
Kovid Goyal
1ff74b86dc Wayland GNOME: Workaround bug in mutter causing double tap on titlebar to not always work
Fixes #8054
2024-11-18 08:46:17 +05:30
Kovid Goyal
4f6ca36bc2 Mention another terminal PDF viewer that uses the kitty graphics protocol 2024-11-12 09:35:51 +05:30
Kovid Goyal
97e4625a82 ... 2024-11-12 09:29:17 +05:30
Kovid Goyal
6d5a2b8ecd Add a test that exercises the text_cache in Line code path 2024-11-12 09:16:45 +05:30
Kovid Goyal
6f5789fcd0 Couple more places where we initialized Line without TextCache 2024-11-12 09:08:42 +05:30
Kovid Goyal
a014b4e76a Fix #8044 2024-11-12 09:04:08 +05:30
Kovid Goyal
19cb15811f Merge branch 'fix-spelling' of https://github.com/FireIsGood/kitty 2024-11-11 09:37:10 +05:30
FireIsGood
ef980e0bce Fix config spelling errors 2024-11-10 19:49:33 -08:00
Kovid Goyal
f2e41b2283 Merge branch 'dependabot/go_modules/all-go-deps-1844b1ebac' of https://github.com/kovidgoyal/kitty 2024-11-11 08:49:04 +05:30
dependabot[bot]
1d390b70e2 Bump the all-go-deps group with 2 updates
Bumps the all-go-deps group with 2 updates: [golang.org/x/image](https://github.com/golang/image) and [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/image` from 0.21.0 to 0.22.0
- [Commits](https://github.com/golang/image/compare/v0.21.0...v0.22.0)

Updates `golang.org/x/sys` from 0.26.0 to 0.27.0
- [Commits](https://github.com/golang/sys/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 03:12:28 +00:00
Kovid Goyal
af8605dabf bump unicode version to 16 2024-11-10 09:03:52 +05:30
Kovid Goyal
38607369aa ... 2024-11-09 07:54:55 +05:30
Kovid Goyal
0356f28576 Fix #8031 2024-11-08 07:26:32 +05:30