1159 Commits

Author SHA1 Message Date
Kovid Goyal
672ecde68b
X11: Fix a crash if the X server requests clipboard data after we have relinquished the clipboard
Fixes #5650
2023-03-07 13:53:07 +05:30
Kovid Goyal
2bbf9a4e9b
Wayland KDE: Fix selecting in un-focused OS window not working correctly
Every day, in every way, I fall deeper and deeper in love with Yayland!

Fixes #6095
2023-03-07 11:29:57 +05:30
pagedown
823db08712
IME: Right align overlay when typing at the edge of the screen
When the cursor is at the right edge of the screen, push the overlay to
the left to display the pre-edit text just entered.
2023-03-04 16:11:29 +08:00
Kovid Goyal
defac0c061
Implement automatic tmux passthrough for icat 2023-03-04 13:01:23 +05:30
Kovid Goyal
a7ed47575e
Improve documentation for Unicode placeholders 2023-03-03 12:45:52 +05:30
Kovid Goyal
8add28de96
Merge branch 'pr-unicode-placeholders' of https://github.com/sergei-grechanik/kitty 2023-03-03 10:55:02 +05:30
Kovid Goyal
fccd776732
Fix overlay windows not inheriting the per-window padding and margin settings of their parents
Fixes #6063
2023-03-01 21:45:17 +05:30
Kovid Goyal
66804dafe8
Fix a regression that broke drawing of images below non-default cell backgrounds
Fixes #6061
2023-03-01 21:13:48 +05:30
pagedown
854529c443
hints kitten: Allow copying matches to named buffers 2023-03-01 22:10:24 +08:00
Kovid Goyal
6de77ce987
Clean up exclude pattern handling 2023-02-26 09:12:12 +05:30
Kovid Goyal
3d3bfe6c75
... 2023-02-26 08:00:50 +05:30
pagedown
126aaddccb
IME: Render overlay at the last visible cursor position with a separate cursor
Fix the problem caused by wrong cursor coordinates. No more messing with
the main cursor, instead the cursor is saved when receiving a pre-edit
text update and used for drawing later.

Update the overlay to the last visible cursor position before rendering
to ensure it always moves with the cursor. Finally, draw the overlay
after line rendering is complete, and restore the line buffer after
updating the rendered data to ensure that the line text being read is
correct at all times.

This also improves performance by only rendering once when changes are
made, eliminating the need to repeatedly disable and draw after various
commands and not even comprehensively.
2023-02-22 22:36:06 +08:00
Sergei Grechanik
d63eeada73 Image placement using Unicode placeholders
This commit introduces the Unicode placeholder image placement method.
In particular:
- Virtual placements can be created by passing `U=1` in a put command.
- Images with virtual placements can be displayed using the placeholder
  character `U+10EEEE` with diacritics indicating rows and columns.
- The image ID is indicated by the foreground color of the placeholder.
  Additionally, the most significant byte of the ID can be specified via
  the third diacritic.
- Underline color can be optionally used to specify the placement ID.
- A bug was fixed, which caused incomplete image removal when it was
  overwritten by another image with the same ID.
2023-02-21 18:23:16 -08:00
pagedown
ba83ce7b10
macOS: Display the newly created OS window in specified state
Fix the maximized window can't occupy full screen space when window
decoration or title bar is hidden.
Fix resize_in_steps being applied even when window is maximized.
Allows to specify `os_window_state` in startup session file.
2023-02-18 14:02:19 +08:00
Kovid Goyal
72b2ba51df
launch: Allow specifying the state (fullscreen/maximized/minimized) for newly created OS Windows
Fixes #6026
2023-02-16 16:24:46 +05:30
Kovid Goyal
3399f40de5
Merge branch 'go-version' of https://github.com/page-down/kitty 2023-02-14 11:15:02 +05:30
Kovid Goyal
5219044519
Merge branch 'reload-mime-types' of https://github.com/page-down/kitty 2023-02-14 09:55:22 +05:30
pagedown
4141872290
When reloading configuration, also reload mime.types 2023-02-12 17:28:42 +08:00
pagedown
c41b65af97
macOS: Update window button visibility after toggling full screen 2023-02-12 13:45:27 +08:00
pagedown
e388326929
... 2023-02-11 20:36:25 +08:00
Kovid Goyal
2307892b50
Cleanup previous PR getting kitty working on macOS
Do not reduce the required OpenGL version on macOS. There is no point
anyway.

Fixes #2790
2023-02-10 11:03:25 +05:30
pagedown
81a221460a
Docs: Remind users to remove macos_thicken_font in changelog 2023-02-10 12:46:50 +08:00
pagedown
f8644682f9
... 2023-02-10 12:46:40 +08:00
Kovid Goyal
1b580e8323
Update Changelog for last PR 2023-02-10 09:28:33 +05:30
Kovid Goyal
679862aa94
When changing the cursor text color via escape codes or remote control to a fixed color, do not ignore cursor_text_color
Fixes #5994
2023-02-08 21:01:00 +05:30
Kovid Goyal
7c8c7fe3a2
launch: When using --cwd=current for a remote system support running non shell commands as well 2023-02-08 17:52:28 +05:30
Kovid Goyal
237a5d17c0
Fix a regression in 0.27.0 that broke kitty @ set-font-size 0
Fixes #5992
2023-02-08 14:21:56 +05:30
Kovid Goyal
4dfd4d4972
sRGB glyph composition: Use default values that give "close to native" rendering. Also use only a single option to control it. 2023-02-08 13:49:53 +05:30
Kovid Goyal
8433f1d731
Update changelog for last PR 2023-02-08 13:03:25 +05:30
Kovid Goyal
17e4995e93
version 0.27.1 2023-02-07 16:10:29 +05:30
pagedown
370aa3aaa6
Completion: Delegate kitty +complete to kitten
Implement `kitten __complete__ setup` in Go.
Fix zsh completion script to check `kitten`.
2023-02-03 18:16:04 +08:00
Kovid Goyal
a8480a4ca6
Update changelog for previous PR 2023-02-02 17:51:25 +05:30
Kovid Goyal
a7cbe3776d
Wayland GNOME: Fix for ibus not working when using XWayland
See 8ce25208c3

I dont know what it is with GNOME. Every single release they break
backward compatibility somewhere, somehow. They must have special
talents.

Fixes #5967
2023-02-02 10:25:33 +05:30
Kovid Goyal
5c0d477a18
icat kitten: Fix transmission of frame data in direct mode
Sometimes frame data is > 2048 but does not compress smaller, which
broke the if statement checking for first loop.

Fixes #5958
2023-02-01 10:51:59 +05:30
Kovid Goyal
fbbfb25702
Better fix for kitten not being in PATH
Add it to PATH just as we add the kitty dir to PATH. Ensures the correct
kitten is in PATH, corresponding to the correct kitty.
2023-02-01 10:16:50 +05:30
Kovid Goyal
6ea812679f
Fix modify_font not working for strikethrough position
Fixes #5946
2023-02-01 08:14:54 +05:30
Kovid Goyal
5a997a5f7a
grammar 2023-01-31 21:02:58 +05:30
Kovid Goyal
70111d130e
version 0.27.0 2023-01-31 10:48:56 +05:30
Kovid Goyal
9b5034f904
macOS: Integrate with system services 2023-01-29 19:47:50 +05:30
Kovid Goyal
5e645a7be7
Fix ssh kitten not working on FreeBSD
Apparently on FreeBSD one cannot unlink shared mem if it is not created
with write permissions.

Adding IWRITE to the permissions when creating the shared memory is
harmless. It means any process running as the user can either write to
the file or delete it. Deleting was already possible except on FreeBSD.
As for writing, it's needed on FreeBSD for shared memory to be useable
at all, and since processes running as the user can already completely
access all their data, kitty config files, tty pipes, etc. allowing them
to write to the SHM used here doesnt grant any significant new
capability, since they could just write to ssh.conf in the kitty config
folder to get the ssh kitten to do whatever they like.

Fixes #5928
2023-01-25 23:34:31 +05:30
Kovid Goyal
60791bb57b
Session files: Expand environment variables 2023-01-23 17:34:53 +05:30
Kovid Goyal
03abbb315a
Fix using cursor=none not working on text that has reverse video
Fixes #5897
2023-01-18 09:23:49 +05:30
Kovid Goyal
9a77fdcd04
A new option undercurl_style to control the rendering of undercurls
Fixes #5883
2023-01-16 14:23:10 +05:30
Kovid Goyal
865fc24975
When reporting unused activity in a window, ignore activity that occurs soon after a window resize
Fixes #5881
2023-01-15 09:09:07 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
It's easier to type, and cuter.

Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.

The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.

Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
69255f7525
broadcast kitten: Allow pressing a key to stop echoing of input into the broadcast window itself 2023-01-09 17:19:35 +05:30
Kovid Goyal
5d42d1f955
Remove the old python icat implementation
Keep the python backend code as it is used by the diff kitten to display
image diffs.
2023-01-05 19:34:12 +05:30
Kovid Goyal
aab81c2d32
Turn off hyperlink target display by default
I find it too intrusive for limited benefit. Most the hyperlinks I
click come from trusted programs anyway.
2023-01-05 15:30:43 +05:30
Kovid Goyal
c03310b5e5
Cleanup previous PR 2022-12-31 14:03:16 +05:30
Kovid Goyal
4f9ed6546a
Pass key events mapped to scroll actions to the program running in the terminal when the terminal is in alternate screen mode
Fixes #5839
2022-12-30 08:54:31 +05:30