Commit graph

2390 commits

Author SHA1 Message Date
Mike Smith
40d8111717 Document integration with tool kitty-scrollback.nvim 2024-01-09 22:43:44 -05:00
Kovid Goyal
b8c5c62585
Graphics protocol: Specify some edge case behavior for image display
See https://github.com/kovidgoyal/kitty/discussions/6979
2024-01-08 08:46:17 +05:30
Kovid Goyal
1e249035c7
Fix focus_visible_window not switching to other window in stack layout when only two windows are present
Fixes #6970
2024-01-05 21:41:21 +05:30
Kovid Goyal
ab2af0c141
... 2023-12-26 22:53:57 +05:30
Kovid Goyal
0a2fcf1805
Mouse reporting: Fix incorrect position reported for windows with padding
Fixes #6950
2023-12-26 22:27:20 +05:30
Kovid Goyal
858f0c1073
GNOME Wayland: Fix remembered window size smaller than actual size
Fixes #6946
2023-12-25 19:29:33 +05:30
Kovid Goyal
4519b3abee
Enable cursor shape on Wayland
Cant replicate the hyprland crash, so am not going to bother about it.

Fixes #6914
2023-12-24 22:56:01 +05:30
Kovid Goyal
91cdf4af00
kitty keyboard protocol: Specify the behavior of the modifier bits during modifier key events
Fixes #6913
2023-12-24 12:09:13 +05:30
Kovid Goyal
c03d99e744
Update changelog 2023-12-22 06:20:38 +05:30
Kovid Goyal
39a3c38037
Merge branch 'patch-1' of https://github.com/arthurbacci/kitty 2023-12-21 08:08:59 +05:30
Kovid Goyal
5dfe4427cf
Note that the rio terminal also supports the kitty keyboard protocol 2023-12-21 08:07:27 +05:30
Arthur Bacci
b2eac37164
Fix copy-paste typo in graphics-protocol.rst 2023-12-20 15:44:53 -03:00
Kovid Goyal
017947de7f
panel kitten: Fix rendering with non-zero margin.padding in kitty.conf
Fixes #6923
2023-12-17 11:12:49 +05:30
Kovid Goyal
b2587c1d54
Fix modifier reporting on macOS
We make use of the fact that the device dependent modifiers flags
actually report left/right modifier. Code taken form SDL, with thanks.
2023-12-14 11:31:48 +05:30
Kovid Goyal
7e5230e6f4
more grammar 2023-12-14 09:06:16 +05:30
Kovid Goyal
64cfe8171f
... 2023-12-14 08:55:43 +05:30
Kovid Goyal
a9b424e307
Keyboard protocol: Clarify the behavior of the modifier bits during modifier key events
I cant find any relevant standards for this, so am just picking the
macOS behavior as it seems more sensible to me.

Fixes #6913
2023-12-14 08:50:19 +05:30
Kovid Goyal
d9ccbcd0ce
Font fallback: Fix the font used to render a character sometimes dependent on the order in which characters appear on screen
We ameliorate the performance hit by storing a hash table mapping cell
text to the loaded fallback font index so that lookups for previously
seen text are still fast.

Fixes #6865
2023-12-11 20:27:21 +05:30
Kovid Goyal
00f8f340bf
macOS: Fix returning from full screen via the button when the titlebar is hidden not hiding the buttons
Fixes #6883
2023-12-10 22:30:15 +05:30
Kovid Goyal
e9e889457d
macOS: Fix some combining characters not being rendered
Use Harfbuzz for positioning instead of Core Text as Core Text doesn't
position combining chars correctly anymore. This may mean we need to
redo the cell metrics calculation as well, we will see. Core Text is
still used for rendering but at positions specified by Harfbuzz.

Fixes #6898
2023-12-10 20:30:24 +05:30
Kovid Goyal
69a5c7e3b2
Wayland: Fix a regression in the previous release that broke copying to clipboard under wl-roots based compositors in some circumstances
As is usual in Wayland land, utter chaos. Divergent implementations,
incorrect interpretations of the spec, bla bla.

Fixes #6890
2023-12-08 08:38:08 +05:30
Kovid Goyal
22ac57c374
Another terminal emulator adds support for the kitty keyboard protocol 2023-12-06 16:32:27 +05:30
Kovid Goyal
392a301cd8
Note how to to use hints to open hyperlinks 2023-12-05 07:50:35 +05:30
Kovid Goyal
04eafbea9b
Implement better syntax highlighting for the new map 2023-12-04 11:54:49 +05:30
Kovid Goyal
59e3b202b9
Update changelog 2023-12-03 21:11:52 +05:30
Kovid Goyal
a7bdbb11f2
Document the new modal keymaps 2023-12-03 21:09:26 +05:30
Kovid Goyal
77551cdfc1
Weird macOS docs build failure 2023-12-03 15:06:12 +05:30
Kovid Goyal
99995fd9dc
Remote control API for send-key 2023-12-03 13:23:01 +05:30
Kovid Goyal
74388b4183
A simple action to remap key presses sent to programs running in kitty 2023-12-03 13:08:53 +05:30
Kovid Goyal
f1fc2126bc
Refactor the mapping docs 2023-12-03 12:25:15 +05:30
Kovid Goyal
8a1571f62c
Add full docs for matching windows/tabs to the remote control page 2023-11-29 21:44:52 +05:30
Kovid Goyal
35b2dcb065
... 2023-11-23 17:25:52 +05:30
Notarin
3cbb8d5c8f
Update graphics-protocol.rst
Fixed a very small typo
2023-11-18 22:36:39 -05:00
Kovid Goyal
04506975e5
Cleanup previous PR 2023-11-14 14:55:43 +05:30
Jin Liu
0f52b69372 launch watcher: add on_cmd_startstop event 2023-11-14 16:46:46 +08:00
Kovid Goyal
9a08489112
Fix config file reloading not working is a system config file is set and no user config file is present at startup
Fixes #6801
2023-11-13 01:02:02 +05:30
Kovid Goyal
4d510e3318
Fix searching for kitten to build man pages on macOS 2023-11-12 07:56:03 +05:30
Kovid Goyal
87f7bd2f9e
See what's going on with finding kitten in CI 2023-11-11 20:11:40 +05:30
Kovid Goyal
2ffe03ee48
mypy again 2023-11-11 20:01:28 +05:30
Kovid Goyal
a3c8f32c1a
Fix Linux CI build 2023-11-11 17:36:10 +05:30
Kovid Goyal
176ffc7f51
... 2023-11-11 17:14:09 +05:30
Kovid Goyal
70bc4f1033
Generate man pages for kitten and all its sub-commands recursively
Fixes #6808
2023-11-11 17:09:23 +05:30
Kovid Goyal
dee2e83fb4
Remove no longer needed monkeypatch 2023-11-11 13:44:34 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.

Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
b247fda672
version 0.31.0 2023-11-08 13:15:45 +05:30
Kovid Goyal
61429c73c7
Wayland: Fix primary selections not working with the river compositor
Fixes #6785
2023-11-03 19:57:54 +05:30
Kovid Goyal
b4f88b4f81
A new option to control when hyperlinks are underlined
While kitty is never going to underline detected URLs as the performance
of that is absurd, underlining hyperlinks specifically is acceptable,
since they dont require detection.

See #6766
2023-11-03 08:51:58 +05:30
Kovid Goyal
954b7f87a5
Add some docs on why no-sudo might be needed 2023-11-03 08:26:54 +05:30
Kovid Goyal
d113a6c2cf
ssh kitten: Fix a regression that broken ctrl+space mapping in zsh
Fixes #6780
2023-11-03 07:16:07 +05:30
Kovid Goyal
827a7d5094
Add a new interactive action to set the active window title 2023-11-02 08:05:49 +05:30
Kovid Goyal
f3ece8b7c4
Update changelog 2023-10-31 16:29:04 +05:30
Kovid Goyal
f05a58f363
Note cursor movement behavior for relative placements in the spec 2023-10-27 15:43:15 +05:30
Kovid Goyal
9f42e915c8
Clarify relative placement spec 2023-10-27 15:38:56 +05:30
Kovid Goyal
52d5a4679f
Graphics protocol: Support for positioning images relative to other images
Fixes #6617
2023-10-27 15:27:30 +05:30
Kovid Goyal
aee14a49f0
... 2023-10-27 14:19:35 +05:30
Kovid Goyal
acf586867c
Fix empty emoticons panel in unicode input kitten
Fixes #6760
2023-10-27 14:18:46 +05:30
Kovid Goyal
6111bc8ed6
Cleanup changelog 2023-10-26 09:00:37 +05:30
Kovid Goyal
b55883591d
... 2023-10-25 18:37:10 +05:30
Kovid Goyal
0ce996120a
Allow o key to take effect in any chunk of OSC 99 2023-10-25 15:50:58 +05:30
Kovid Goyal
47b8b442dc
Document when o key was added to desktop notifications spec 2023-10-25 15:42:57 +05:30
Kovid Goyal
32d23921df
... 2023-10-25 13:54:22 +05:30
Kovid Goyal
19374208e0
desktop notification protocol: Allow applications sending notifications to specify that the notification should only be displayed if the window is currently unfocused
Fixes #6755
2023-10-25 13:52:32 +05:30
Kovid Goyal
8c83284d5e
Fix #6750 2023-10-25 12:14:36 +05:30
Kovid Goyal
9c25a183db
On second thoughts dont use foreground process env vars for kitten @ ls
Since the purpose of the env vars is mostly to recognize windows the
original env vars make more sense. Also I dislike changing behavior for
no good reason.
2023-10-25 12:12:16 +05:30
Kovid Goyal
eefb865e6e
kitten @ ls: Return environ of foreground process
This is needed on macOS where we now run the shell via login and we
aren't allowed to read the environ of login because its setuid.

Fixes #6749
2023-10-25 09:54:12 +05:30
Kovid Goyal
ce583ea460
Render Private Use Unicode symbols using two cells if the second cell contains a non-breaking space as well as a normal space
There is some software out there that uses nbsp as a separator,
presumably as some kind of hack.

https://github.com/ibhagwan/fzf-lua/issues/916
2023-10-24 17:38:49 +05:30
Kovid Goyal
539a8706dc
Update bundled harfbuzz version
The old version shows very poor perfromance shaping some fonts with
ligatures on macOS.

Fixes #6743
2023-10-24 16:39:29 +05:30
Kovid Goyal
7292d1c9df
Clean up mouse-demo kitten
Fixes #6738
2023-10-21 07:55:23 +05:30
Kovid Goyal
c9a95cacd9
... 2023-10-20 18:24:21 +05:30
Kovid Goyal
defa2e29ac
Always ask for confirmation when pasting text with control codes in it 2023-10-20 13:02:28 +05:30
Kovid Goyal
56963c693e
When pasting in bracketed paste mode and the cursor is at a shell prompt, strip out C0 control codes
Some shells incorrectly interpret these allowing escape from bracketed paste mode. Thanks to David Leadbetter for discovering.
2023-10-20 12:17:13 +05:30
Kovid Goyal
4b997a961c
A new option single_window_padding_width to use a different padding when only a single window is visible
Fixes #6734
2023-10-20 08:37:45 +05:30
Kovid Goyal
512a672398
... 2023-10-19 08:12:04 +05:30
Kovid Goyal
6cfb451ec8
Two new event types for watchers
on_title_change and on_set_user_var
2023-10-19 07:54:33 +05:30
Kovid Goyal
4a463f7712
More kitty @ -> kitten @ 2023-10-18 21:16:12 +05:30
Kovid Goyal
5ea9700c82
More kitty @ -> kitten @ 2023-10-18 20:40:39 +05:30
Kovid Goyal
1332cf8ac7
Create an easy to use alias for running remote control scripts 2023-10-18 20:29:50 +05:30
Kovid Goyal
f8ab5f3f67
... 2023-10-18 20:15:05 +05:30
Kovid Goyal
822311d523
Change kitty @ to kitten @ in the docs 2023-10-18 20:13:49 +05:30
Kovid Goyal
713569fcfa
Advertise the ability to run remote control scripts without turning on remote control 2023-10-18 20:10:17 +05:30
Kovid Goyal
314fe4fe4a
Allow launched background process to work with --allow-remote-control
Use a dedicated socketpair for such processes. Fixes #6712
2023-10-18 19:56:58 +05:30
Kovid Goyal
a9b412baba
Fix a regression that broke kitten update-self
Fixes #6729
2023-10-18 19:19:35 +05:30
Kovid Goyal
0300a355d0
update docs for remote_kitty 2023-10-18 17:31:44 +05:30
Kovid Goyal
cb15b98afd
Add presenterm to the list of integrations 2023-10-17 21:52:18 +05:30
Kovid Goyal
45a98b19c5
Mention that pointer shapes can be demo-ed with the mouse_demo kitten 2023-10-17 21:17:45 +05:30
Kovid Goyal
ddb121b418
Remote control launch: Fix the --copy-env option not copying current environment variables
Fixes #6724
2023-10-16 22:32:51 +05:30
Kovid Goyal
d2026574b8
Add a sentence emphasizing the pointer shapes are independent of mouse reporting 2023-10-16 20:36:09 +05:30
Kovid Goyal
187fa996f8
Add the cell pointer shape 2023-10-16 20:33:12 +05:30
Kovid Goyal
5d5bbe9b96
Add a paragraph on legacy xterm compat for pointer shapes 2023-10-15 21:59:04 +05:30
Kovid Goyal
3a6c7e78df
Note when support for pointer shapes was added 2023-10-15 21:51:10 +05:30
Kovid Goyal
1693107608
A new escape code to change the shape of the mouse pointer
Fixes #6711
2023-10-15 19:57:36 +05:30
Kovid Goyal
4f1971c480
Rationalize mouse cursor shape handling
Now can use the full range of standard mouse cursor shapes similar to
those supported by browsers via the CSS cursor property.

Still needs to be fully implemented for cocoa backend.
2023-10-15 09:17:31 +05:30
Kovid Goyal
a79dd3996a
Also move data files for gen scripts into gen dir 2023-10-14 08:04:37 +05:30
Kovid Goyal
1f91250a40
Fix trailing bracket not ignored when detecting a multi-line URL with the trailing bracket as the first character on the last line
Fixes #6710
2023-10-13 10:44:58 +05:30
Kovid Goyal
00dc5a8dc5
Fix a regression caused by rewrite of kittens to Go that made various kittens reset colors in a terminal when the colors were changed by escape code
Fixes #6708
2023-10-12 20:19:28 +05:30
Kovid Goyal
16e7ca3a95
kitten @ set-background-opacity --toggle
Fixes #6691
2023-10-10 05:04:50 +05:30
Kovid Goyal
f73d32e15d
A new option menu_map that allows adding entries to the global menubar on macOS 2023-10-09 19:47:25 +05:30
Kovid Goyal
32b7be2201
Proper fix for braindead macOS login
Always run it in the home dir as it seems to expect that. Change the
working dir after running login
2023-10-09 11:29:32 +05:30
Kovid Goyal
619d4e3dc4
Run login on macOS with -q
Fixes #6689
2023-10-09 07:05:43 +05:30
Kovid Goyal
edb9c924fe
Note that fzf now supports the kitty graphics protocol for image previews 2023-10-08 07:22:54 +05:30