Commit graph

2671 commits

Author SHA1 Message Date
Kovid Goyal
f1e1dc4a0c
Split up list of software supporting graphics protocol into libraries and applications and make it alphabetical 2024-07-07 20:31:36 +05:30
Kovid Goyal
f8beaa0a4b
Dispatch any clicks waiting for click_interval on key events
Fixes #7601
2024-07-07 20:17:22 +05:30
Kovid Goyal
87bd4334b7
Merge branch 'patch-2' of https://github.com/Canop/kitty 2024-07-07 19:30:35 +05:30
Denys Séguret
ae899fe24f
Update graphics-protocol.rst
Add broot to the list of applications using Kitty's graphics protocol

(IMO it would be easier to read with an alphabetical sorting and by removing the gratuitous "blazing fast" assertions but that's out of scope of this PR)
2024-07-07 15:08:28 +02:00
Kovid Goyal
a3e20ea6d1
... 2024-07-07 13:36:12 +05:30
Kovid Goyal
5db9f2a205
Note in build docs that HERD font is now a build time requirement 2024-07-05 11:01:26 +05:30
Kovid Goyal
e365d1bc5d
... 2024-07-03 08:53:16 +05:30
Kovid Goyal
3d77950b45
Update changelog 2024-07-02 19:16:05 +05:30
Kovid Goyal
98c85d2923
Use builtin NERD fonts
Prevents users from having to install their own NERD font. System fonts
are still used preferentially on Linux but on macOS the builtin one is
used preferentially. Cant find any CoreText API to change this.

Still has to be implemented on macOS. And need to add code to the build
system to bundle the font when building.
2024-07-02 10:28:07 +05:30
Kovid Goyal
314da124f3
macOS 15: Handle Fn modifier when detecting global shortcuts
Fixes #7582
2024-07-01 09:54:01 +05:30
Kovid Goyal
44f7a1c0c2
... 2024-06-29 15:18:28 +05:30
Kovid Goyal
a1cd9ab229
... 2024-06-29 14:42:14 +05:30
Kovid Goyal
766a853622
Add font awesome symbols to NERD fonts range in FAQ 2024-06-29 14:41:29 +05:30
Kovid Goyal
78d1275601
macOS: Fix rendering of the unicode hyphen (U+2010) character when using a font that does not include a glyph for it
The problem was caused by CoreText falling back to the glyph for the
ASCII hyphen U+00AD when the font does not contain a glyph for U+2010.
However, HarfBuzz does not do this automatic fallback (see
https://github.com/harfbuzz/harfbuzz/issues/517). This leads to the
character not being rendered.

To fix this we specialize HarfBuzz glyph lookup for this character
to follow CoreText. HarfBuzz should really do this automatically when
the hb_font is based on a CTFontRef, but I dont have the time/energy to
argue with its maintainers. Note that HarfBuzz already does this
automatic fallback for U+2011.

Hopefully, there aren't many more such special cases in CoreText.

Fixes #7525
2024-06-29 14:22:04 +05:30
Kovid Goyal
ab296b1551
... 2024-06-29 11:08:23 +05:30
Kovid Goyal
107cd957d3
Update changelog 2024-06-25 13:16:05 +05:30
Kovid Goyal
5bb8378dc1
icat: Add an option to leave the cursor to the right of the image
Fixes #7574
2024-06-25 13:06:46 +05:30
Kovid Goyal
190566be8e
Wayland: Fix specifying the output name for the panel kitten not working
Fixes #7573
2024-06-25 12:53:37 +05:30
Chase Colman
e2d3e0ba96
Fix composition example in Graphics Protocol
The example is missing `a=c` but it has the remaining parameters.
2024-06-25 00:59:06 +08:00
Kovid Goyal
8f9c9db1cf
... 2024-06-24 15:42:38 +05:30
Kovid Goyal
e0ffe6d584
... 2024-06-24 11:44:43 +05:30
Kovid Goyal
a70cedbea3
... 2024-06-24 11:34:48 +05:30
Kovid Goyal
b3eb87e8d0
Note var font support in feature summary 2024-06-24 11:31:25 +05:30
Kovid Goyal
9ddcedc126
Update docs of font_family to reference the choose-fonts kitten 2024-06-24 11:21:15 +05:30
Kovid Goyal
fb19bf057e
Update docs of font_features to note that it is not needed for main font configuration anymore 2024-06-24 11:14:21 +05:30
Kovid Goyal
c4d634d143
... 2024-06-24 11:08:38 +05:30
Kovid Goyal
9169bb023c
Document font selection syntax 2024-06-24 11:07:26 +05:30
Kovid Goyal
b34bd8dc93
Update change log with variable font support 2024-06-24 10:06:43 +05:30
Kovid Goyal
8d716ab6cb
... 2024-06-24 07:54:19 +05:30
Kovid Goyal
85b6f15313
More choose-fonts documentation 2024-06-24 07:54:19 +05:30
Kovid Goyal
5774965e32
Start documenting the choose fonts kitten 2024-06-24 07:54:19 +05:30
Kovid Goyal
2be91d73dd
Move the query_terminal implementation to Go 2024-06-24 07:54:14 +05:30
Kovid Goyal
9b3bb05a3a
Drop support for 32-bit x86 prebuilt binaries
SIMDe 0.8.2 doesnt build on 32 bit and while that will likely be fixed
eventually, 32bit isn't tested in CI and generally speaking there isn't
much use for this platform anymore. I dont know of any 32-bit computers
in common use these days.

As such the overhead of maintaining these is not worth it for me.
kitty itself remains buildable on 32-bit though no guarantees for how
long that will last. kitten remains available on 32bit.
2024-06-24 07:53:15 +05:30
Kovid Goyal
3fd51e4ebb
Cleanup previous PR 2024-06-23 19:27:11 +05:30
Kovid Goyal
ad328bfeaa
version 0.35.2 2024-06-22 09:04:46 +05:30
Kovid Goyal
df229dafa0
Clarify docs that remote_control_script is a convenience wrapper for launch 2024-06-21 06:17:32 +05:30
Kovid Goyal
1a38b60463
URL detection: Fix IPv6 hostnames breaking URL detection
Fixes #7565
2024-06-21 05:53:21 +05:30
Kovid Goyal
2bcb32d611
Fix scrollback_indicator_opacity not actually controlling the opacity
Fixes #7557
2024-06-19 06:03:30 +05:30
Kovid Goyal
2a6870b21f
Wayland labwc: Fix kitty timing out waiting for compositor to quit fucking around with scales on labwc
labwc is unique among Wayland compositors in implementing fractional
scale but not preferred integer buffer scale events. We didn't cater to
this particular combination of before. And to top it off it appears to
have no way for the user to set/control the scale so I cant even test
what it will do with fractional scales other than 1. Sigh. As with all
things Wayland, you need to be a masochist to subject yourself to them.

Fixes #7540
2024-06-16 15:01:46 +05:30
Kovid Goyal
57aa591a90
... 2024-06-16 06:13:54 +05:30
Kovid Goyal
e0998fcbb1
Update changelog 2024-06-16 06:09:01 +05:30
Kovid Goyal
f4bec5f4ab
Remote control: Fix empty password not working
Fixes #7538
2024-06-15 11:15:19 +05:30
Kovid Goyal
68649d78df
Cleanup previous PR 2024-06-15 06:12:31 +05:30
Kovid Goyal
6f0366d42f
Update changelog and cleanup docs of the window_logo_scale option 2024-06-14 13:49:58 +05:30
Kovid Goyal
e3239fdcdf
... 2024-06-10 09:25:14 +05:30
Kovid Goyal
dea7752df1
Note that textual now supports the kitty keyboard protocol 2024-06-10 09:24:31 +05:30
Mikhail Goncharov
c153ea8acc use readlink -f ~ to get user home
/home/$USER works most of the time but might be wrong
2024-06-07 11:03:37 +02:00
sxyazi
14c16fa943
Add Yazi terminal file manager to the list of software implementing kitty's graphics protocol 2024-06-04 14:06:14 +08:00
Kovid Goyal
1bfb1de7fc
version 0.35.1 2024-05-31 14:22:58 +05:30
Kovid Goyal
f3d8cf5d29
Add tdf as a terminal PDF viewer that uses the kitty graphics protocol 2024-05-30 21:20:31 +05:30
Kovid Goyal
beb42d571b
Forgot to use aspect ratio calculation when only one of r/c is specified for determining cursor position and image cell overlaps. Fixes #7479 2024-05-28 21:30:26 +05:30
Kovid Goyal
5e2fc4e90f
Fix a regression in the previous release causing an error when setting background_opacity to zero
Fixes #7483
2024-05-28 20:03:10 +05:30
Kovid Goyal
48070ff38e
Fix #7481 2024-05-28 15:14:13 +05:30
Kovid Goyal
57b6cec900
Update changelog 2024-05-28 10:29:12 +05:30
Kovid Goyal
9837531b63
Wayland: Fix a regression in 0.34 that caused the tab bar to not render in second and subsequent OS Windows under Hyprland
Fixes #7413
2024-05-28 09:12:37 +05:30
Kovid Goyal
03aab9a88b
version 0.35.0 2024-05-25 09:07:36 +05:30
Kovid Goyal
9acca045bd
macOS: Fix changing window chrome/colors while in traditional fullscreen causing the titlebar to become visible
Fixes #7469
2024-05-23 22:30:57 +05:30
Kovid Goyal
15d86013d8
Add option :option:kitten @ detach-window --stay-in-tab to keep focus in the currently active tab when moving windows
Fixes #7468
2024-05-23 21:45:30 +05:30
Kovid Goyal
f86102ab88
macOS: Fix --start-as=fullscreen not working when another window is already fullscreen
Apparently, we need to make the window visible before full screening it.
Sigh. I dont know why Apple insisted on this horrible "fancy"
fullscreen of theirs, it's full of bugs and dog slow.

Fixes #7448
2024-05-23 08:38:38 +05:30
Kovid Goyal
3f6b1a9d81
launch --hold: Fix hold not working if kernel signals process group with SIGINT
Fixes #7466
2024-05-22 17:24:36 +05:30
Kovid Goyal
c0f820443b
Make NETLOC avaialble to open action commandlines 2024-05-22 14:56:50 +05:30
Kovid Goyal
f2a14a083b
Some more doc examples
Also disallow fragments that start with -
2024-05-22 08:44:14 +05:30
Kovid Goyal
83380cc916
Use -- in the doc examples as well 2024-05-22 08:33:12 +05:30
Kovid Goyal
f80b32df29
Fix kitten @ set-background-opacity limited to min opacity of 0.1 instead of 0
Fixes #7463
2024-05-22 07:46:39 +05:30
Kovid Goyal
85a64f2934
Scrolling with mouse wheel when a selection is active should update the selection
Fixes #7543
2024-05-20 09:58:48 +05:30
Kovid Goyal
eb2221b11a
Remote control: @ action: Fix some actions being performed on the active window instead of the matched window
Fixes #7438
2024-05-17 09:35:54 +05:30
Kovid Goyal
3cc9750af8
Update changelog 2024-05-17 09:02:53 +05:30
Kovid Goyal
865f662216
Desktop notifications protocol: Add support for specifying urgency 2024-05-16 21:38:43 +05:30
Kovid Goyal
28a9f48786
Fix CI with systemd 2024-05-16 16:00:28 +05:30
Kovid Goyal
39ea084be9
Linux: Run all child processes in their own systemd scope to prevent the OOM killer from harvesting kitty when a child process misbehaves
Fixes #7427
2024-05-16 15:43:25 +05:30
Kovid Goyal
3345e40bdb
Add some more box-drawing characters from the "Geometric shapes" Unicode block
Fixes #7433
2024-05-15 09:27:32 +05:30
Kovid Goyal
8c1e365eb5
hints kitten: Allow clicking on matched text to select it in addition to typing the hint 2024-05-14 15:22:03 +05:30
Kovid Goyal
38fed8b391
kitten @ run: A new remote control command to run a process on the machine kitty is running on and get its output
Fixes #7429
2024-05-14 14:32:01 +05:30
Kovid Goyal
4f26bada31
Fix typo in bash integration script caught by the test 2024-05-09 12:39:03 +05:30
Kovid Goyal
219e53826b
More efficient encoding for cmdline in the prompt marking escape code 2024-05-09 12:03:02 +05:30
Kovid Goyal
0d68a21be5
notify_on_cmd_finish: Show the actual command that was finished
Fixes #7420
2024-05-09 09:49:26 +05:30
Kovid Goyal
5cfa139189
... 2024-05-08 21:26:12 +05:30
Kovid Goyal
fbeb8a5ebc
Update changelog 2024-05-08 21:16:06 +05:30
Kovid Goyal
bdf22f980c
Another alternate kitty icon 2024-05-08 07:58:34 +05:30
Kovid Goyal
849dcd424d
Wayland: save energy by not rendering "suspended" windows on compositors that support that
Note that this breaks kitty on GNOME 45 which has a bug, but it fine on
GNOME 46.
2024-05-05 13:42:51 +05:30
Kovid Goyal
e84d67170c
Dont clear selections on erase in screen commands unless the erased region intersects a selection
Fixes #7408
2024-05-02 19:37:59 +05:30
Kovid Goyal
814412b8ac
kitten @ send-key: Fix some keys being sent in kitty keyboard protocol encoding when not using socket for remote control
The @ kitten no longer changes keyboard mode unless actually needed.
2024-05-02 11:04:41 +05:30
Kovid Goyal
0cd476ae22
Add instructions for making desktop environments run kitty via xdg-terminal-exec
https://github.com/Vladimir-csp/xdg-terminal-exec
2024-04-30 21:23:48 +05:30
nobe4
f1543a73e8
docs: use the hyphenated kitten name
This applies the suggestion in https://github.com/kovidgoyal/kitty/issues/7402#issuecomment-2084726356
2024-04-30 12:43:52 +02:00
Kovid Goyal
4858716ca0
Update changelog 2024-04-30 07:52:27 +05:30
Kovid Goyal
aecf07bcba
Wayland: Fix infinite loop causing bad performance when using IME via fcitx5 due to a change in fcitx5
Fix #7396
2024-04-28 11:30:48 +05:30
Kovid Goyal
66d9db6d0a
focus_visible_window: Fix selecting with mouse click leaving keyboard in unusable state
Fixes #7390
2024-04-26 07:30:38 +05:30
Kovid Goyal
9b14946176
Add image_preview.nvim to the integrations docs 2024-04-25 07:39:22 +05:30
Kovid Goyal
82ab44826c
Graphics: Fix aspect ratio of images not being preserved when only a single dimension of the destination rectangle is specified
Fixes #7380
2024-04-24 12:28:35 +05:30
Kovid Goyal
37864961d7
Add shell integration to the list of things tmux breaks 2024-04-22 22:28:14 +05:30
Kovid Goyal
4cb74fac2e
... 2024-04-22 09:22:07 +05:30
Kovid Goyal
2cd8322bdc
Highlight some key phrases 2024-04-21 20:04:14 +05:30
Kovid Goyal
ef9d279305
paste_actions: Fix replace-newline not working with confirm
Fixes #7374
2024-04-21 09:10:18 +05:30
goodactive
6ae24a8c8d chore: remove repetitive words
Signed-off-by: goodactive <goodactive@qq.com>
2024-04-19 18:29:06 +08:00
Kovid Goyal
7f61f1f9f3
version 0.34.1 2024-04-19 11:05:41 +05:30
Kovid Goyal
ab26d2204f
Update changelog 2024-04-18 22:36:07 +05:30
Kovid Goyal
b9dc48b798
... 2024-04-18 11:50:30 +05:30
Tim Stapleton
2cdabdfebd
fix typo in dependency name 2024-04-17 09:51:31 -05:00
Kovid Goyal
f66ee68834
Wayland GNOME: Draw the titlebar buttons without using a font
Fixes #7349
2024-04-17 10:39:30 +05:30
Kovid Goyal
6c1a83ffd7
Wayland KDE: Fix window background blur not adapting when window is grown. Also fix turning it on and off not working.
Fixes #7351
2024-04-16 18:11:26 +05:30
Kovid Goyal
2b671100d9
version 0.34.0 2024-04-15 06:54:21 +05:30
Kovid Goyal
e7fb4376c0
... 2024-04-12 15:26:29 +05:30
Kovid Goyal
684d28d328
Fix flickering of prompt during window resize
Works by keeping the old prompt unreflowed rather than clearing it.
There may still be some flicker for people using long or right side
prompts, but that cant be avoided, since we cannot know how the shell
will redraw after the resize. But in the common case of a left side
smallish prompt that fits in the resized window, the flicker is
eliminated.

It means we have to do some more copying work on resize, but the nicer
visuals is worth it, IMO.
2024-04-12 15:16:34 +05:30
Kovid Goyal
1c8fd0ccc4
When asking for quit confirmation because of a running program, mention the program name
Fixes #7331
2024-04-11 14:55:16 +05:30
Kovid Goyal
437fc0d8c2
Revert renaming of kitty.dekstop to kitty-terminal.desktop
Changing the default value for application id/WM_CLASS is a no go, since
existing scripts can depend on it and I try to avoid breaking people's
workflows wherever possible. Guess xdg-mime will just have to live with
the horror of an unhyphenated file name.

Fixes #7326
2024-04-09 12:47:14 +05:30
Kovid Goyal
d034bcb1ac
... 2024-04-09 07:11:48 +05:30
Kovid Goyal
325f8df709
text formatting 2024-04-09 07:09:15 +05:30
Kovid Goyal
996a821bf8
Update changelog 2024-04-09 07:05:09 +05:30
Kovid Goyal
b48b53fce9
Next version will be 0.34.0 2024-04-08 13:35:16 +05:30
Kovid Goyal
acf3fef03d
Note when the panel kitten got support for Wayland 2024-04-08 13:34:36 +05:30
Kovid Goyal
597710dd53
Add StartupNotify to kitty.desktop
See https://gitlab.gnome.org/GNOME/mutter/-/issues/2739

Also rename kitty.desktop to kitty-terminal.desktop as otherwise
xdg-menu-install complains about no vendor prefix.
2024-04-08 10:00:06 +05:30
Kovid Goyal
0b27f2cbe0
Merge branch 'fish-osc-133' of https://github.com/krobelus/kitty 2024-04-07 15:15:04 +05:30
Kovid Goyal
60f9bcf51c
Document the extra fields in the prompt marking escape code that kitty supports 2024-04-07 09:50:14 +05:30
Kovid Goyal
65fadf4ed3
Update changelog 2024-04-07 09:04:23 +05:30
Johannes Altmanninger
8951581815 fish integration: drop redundant OSC 133 markers in upcoming fish 3.8
The upcoming fish 3.8 release will output OSC 133 sequences
unconditionally [1].

I tested ctrl-shift-{g,x,z} bindings both without and with kitty's
shell integration on top; everything seems to work.

Let's simplify kitty integration by removing the markers for the
upcoming fish >= 3.8.

I have hopes that the native OSC 133 implementation address #7200
though I'm not sure if I could reproduce this bug (I only saw a
similar bug when `fish_handle_reflow` was not enabled, which fish
also does now (same commit)).
cc @iacore let me know if you can reproduce #7200 with latest fish master.

[1]: 3b9e3e251b
2024-04-06 22:47:13 +02:00
Johannes Altmanninger
4dc1e733a7 doc keyboard protocol: mention upcoming support in fish 2024-04-06 22:46:58 +02:00
Kovid Goyal
67314bf2fb
Add settings that are optimal for latency 2024-04-06 11:48:55 +05:30
Kovid Goyal
9d86448585
Wayland: Allow hiding window decorations on compositors with SSD as well 2024-04-05 19:23:42 +05:30
Kovid Goyal
2c4ffba0f3
Wayland: A new option to turn off IME 2024-04-05 14:56:11 +05:30
Kovid Goyal
1bffe89b5d
Wayland GNOME: titlebar color now follows system theme
When GNOME system theme is default, the color matches the background
color. When it is dark it is dark.
2024-04-04 21:52:56 +05:30
Kovid Goyal
ad039c703c
Note that file transfer wont work through tmux in the FAQ 2024-04-04 10:31:24 +05:30
Kovid Goyal
7071452e6e
Fix #7308 2024-04-04 09:08:23 +05:30
Kovid Goyal
aae1c81840
Update changelog 2024-04-03 18:54:51 +05:30
Kovid Goyal
0965155935
Make the scrollback indicator visible by default 2024-03-31 12:15:05 +05:30
Kovid Goyal
775b7c4758
fish shell integration: Fix clicking at the prompt causing autosuggestions to be accepted, needs fish >= 3.8.0
Fixes #7168
2024-03-31 11:57:53 +05:30
Kovid Goyal
0c6fa47789
Wayland IME: Fix a bug with handling synthetic keypresses generated by ZMK keyboard + fcitx5
Fixes #7283
2024-03-31 09:42:28 +05:30
Kovid Goyal
a695b4ebe1
Link to tgutui in the integrations doc 2024-03-28 21:31:05 +05:30
Kovid Goyal
700b57bc18
Implement a simple scroll progress indicator
Shows a simple bar on the right edge of the window that moves up as you
scroll further back. There are apparently a lot of people that dont use
a pager for browsing large scrollbacks. I will never understand this,
but, what the hell I was in that code area anyway for other reasons.

TODO: Maybe make it a rounded rectangle
2024-03-28 20:33:35 +05:30
Kovid Goyal
d38c986c82
... 2024-03-28 10:43:53 +05:30
Kovid Goyal
399a9d65d2
Improve docs on how to use icat without access to the TTY device 2024-03-28 09:23:23 +05:30
Kovid Goyal
8335a5212e
macOS: Fix an abort due to an assertion when a program tries to set an invalid window title
Fixes #7271
2024-03-27 19:02:43 +05:30
Kovid Goyal
e5a7554c30
Forgot to handle suspend/resume in example code for setting uservar in nvim 2024-03-26 22:04:08 +05:30
Kovid Goyal
db3a49fc4b
Wayland KDE: Fix mouse cursor hiding not working in Plasma 6
kwin in Plasma 6 now requires usage of pointer_enter_serial instead of
last received serial for wl_set_cursor_image(). Hopefully, this wont
break any other compositors.

Fixes #7265
2024-03-26 09:02:59 +05:30
Kovid Goyal
cd5099d6f7
Splits layout: Fix move_window_forward not working
Fixes #7264
2024-03-26 08:21:03 +05:30
Martin Rys
efcacd0885 Oxipng/svgo images to save some 150KB~ 2024-03-25 23:42:56 +01:00
Kovid Goyal
ebee3f1c02
... 2024-03-25 16:15:18 +05:30
Kovid Goyal
c9701a9b05
Update changelog 2024-03-25 16:04:23 +05:30
Kovid Goyal
cc76732058
... 2024-03-25 14:01:45 +05:30
Kovid Goyal
333ea519ed
Infrastructure to go from panel CLI opts all the way to wayland layer shell implementation 2024-03-24 20:48:20 +05:30
Kovid Goyal
a0aba4da4a
Fix handling of tab character when cursor is at end of line and wrapping is enabled
Fixes #7250
2024-03-23 08:43:06 +05:30
Kovid Goyal
98d32e50e0
macOS: Reject styled fallback from CoreText if its family name is not the same as the original
On some systems, for the good Lord alone knows what reason, CoreText is
giving us Zapf Dingbats as a font for some symbols, which doesnt
actually work.

Fixes #7249 (I hope)
2024-03-22 14:38:08 +05:30
Kovid Goyal
1c9f9a74e8
Wayland KDE: Add support for background_blur under kwin using a kwin private Wayland protocol 2024-03-22 13:41:44 +05:30
Kovid Goyal
9df7460fe1
Add a note about how to use edit-in-kitty with sudo to edit root files 2024-03-22 11:56:44 +05:30
Kovid Goyal
0be9b888fa
string changes 2024-03-22 08:15:10 +05:30
Kovid Goyal
cc11ed5c2c
Update changelog 2024-03-21 20:53:36 +05:30
Kovid Goyal
1f149861f9
Mouse reporting: Fix drag release event outside the window not being reported in legacy mouse reporting modes
Fixes #7244
2024-03-21 20:32:58 +05:30
Kovid Goyal
198b69e275
An option to set TERMINFO to the database directly instead of a path 2024-03-21 10:48:53 +05:30
Kovid Goyal
a5fea33757
version 0.33.1 2024-03-21 08:34:07 +05:30
Kovid Goyal
e646596c5b
macOS: When CoreText fails to find a fallback font for a character in the first Private Use Unicode Area, preferentially use the NERD font, if available, for it
Fixes #6043
2024-03-20 20:01:17 +05:30
Kovid Goyal
752fcb6424
macOS: Fix text rendered with fallback fonts not respecting bold/italic styling 2024-03-20 18:23:09 +05:30