Commit Graph

14835 Commits

Author SHA1 Message Date
Kovid Goyal
29040d719c Dont read from fragment output color in shader 2024-12-10 19:28:21 +05:30
Kovid Goyal
9ba3290a61 Merge branch 'dependabot/go_modules/all-go-deps-b04e6bcb1b' of https://github.com/kovidgoyal/kitty 2024-12-09 09:27:46 +05:30
dependabot[bot]
13bac098f7 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.22.0 to 0.23.0
- [Commits](https://github.com/golang/image/compare/v0.22.0...v0.23.0)

Updates `golang.org/x/sys` from 0.27.0 to 0.28.0
- [Commits](https://github.com/golang/sys/compare/v0.27.0...v0.28.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-12-09 03:52:03 +00:00
Kovid Goyal
62fbda8c9b When re-attaching a detached tab preserve internal layout state such as biases and orientations
Fixes #8106
2024-12-06 19:54:10 +05:30
Kovid Goyal
33207a57ba Add tests for consecutive conflicting variation selectors 2024-12-05 19:21:00 +05:30
Kovid Goyal
a4d2d933c9 Fix #8103 2024-12-05 19:19:15 +05:30
Kovid Goyal
512bea3d43 Make cmd finish notification clear behavior configurable 2024-12-05 10:27:30 +05:30
Kovid Goyal
ecb607c31d Merge branch 'v0.37.0-patched' of https://github.com/ein-shved/kitty 2024-12-05 09:35:03 +05:30
Yury Shvedov
a9bcc3319a Cleanup command finish notifications
Currently notifications emitted with `notify_on_cmd_finish` and
unfocused left withing notification bar forever and user have to clear
them by hand. This patch automatically clears notification when emitted
window gained its focus back assuming that user is aware about action
and not needs for notification any more.

Change-Id: I8c9f58eeed696eb473aa4a966436aeb1a15fd3d6
2024-12-04 19:47:41 +03:00
Kovid Goyal
e08806aee6 Fix #8099 2024-12-04 19:24:31 +05:30
Kovid Goyal
463f17f9d8 ... 2024-12-02 09:01:11 +05:30
Kovid Goyal
9fd4268ff6 Add gattino to integrations 2024-12-02 08:32:59 +05:30
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