Commit Graph

1193 Commits

Author SHA1 Message Date
Kovid Goyal
cd56597e7e Remove the resize_draw_strategy option
Use scale + size as the fixed strategy. This is because static looks
bad with translucent windows (the cell area ends up a different opacity
than the newly exposed window area).
2023-06-07 15:36:05 +05:30
Kovid Goyal
21d0522d90 Fix a regression in 0.27.0 that broke setting of specific edge padding/margin via remote control. Fixes #6333 2023-06-04 22:24:48 +05:30
Kovid Goyal
7f6f1f9a5d Fix a regression in 0.28.0 that caused a buffer overflow when clearing the screen
Fixes #6306
Fixes #6308
2023-05-28 06:27:44 +05:30
Kovid Goyal
20fbde447c clipboard kitten: Dont set clipboard when getting clipboard
The previous behavior meant getting the clipboard would
first empty it if STDIN was null or empty which can easily happen when
run non-interactively.

Fixes #6302
2023-05-25 08:41:55 +05:30
Kovid Goyal
a720ef6917 Graphics: Move images up along with text when the window is shrunk vertically
Fixes #6278
2023-05-24 15:18:58 +05:30
Kovid Goyal
53073f34d7 Cleanup previous PR 2023-05-24 13:31:29 +05:30
Kovid Goyal
65f8bb7397 hints kitten: Switch to using a regex engine that supports lookaround
Note that we loose unicode char matching for --type=word because of
https://github.com/dlclark/regexp2/issues/65 and of course user regexps
cant use \p{N} escapes any more. Hopefully regexp2 will add support for
these soon-ish. IMO lookaround is more important than \p.

Fixes #6265
2023-05-12 12:24:59 +05:30
Kovid Goyal
0cc38e1086 ... 2023-05-09 09:50:11 +05:30
Kovid Goyal
e72975cc98 A new escape code that moves the current contents of the screen into the scrollback before clearing it 2023-05-09 09:32:39 +05:30
Kovid Goyal
454acd4f5c ssh kitten: Fix a regression in 0.28.0 that caused interrupt during setup to not be handled gracefully
Fixes #6254
2023-05-08 16:18:05 +05:30
Kovid Goyal
404f83a277 Add a link to awrit in the integrations page 2023-05-07 10:06:37 +05:30
Kovid Goyal
474244268c edit-in-kitty: Fix running edit-in-kitty with elevated privileges to edit a restricted file not working 2023-05-07 09:36:16 +05:30
Kovid Goyal
79cd6f38fe ... 2023-05-07 09:24:30 +05:30
Kovid Goyal
537cabca71 kitty +open: Ask for permission before executing script files that are not marked as executable
This prevents accidental execution of script files via MIME type
association from programs that unconditionally "open"
attachments/downloaded files via MIME type associations.
2023-05-07 08:11:39 +05:30
Kovid Goyal
52afc79476 Fix re-using an image id for an animated image for a still image causing a crash
Fixes #6244
2023-05-06 09:37:55 +05:30
Kovid Goyal
8f96395f74 diff kitten: Fix a regression in 0.28.0 that broke using relative paths as arguments to the kitten
Fixes #6235
2023-05-03 08:34:46 +05:30
Kovid Goyal
1fc4e53bea hints kitten: Fix a regression in 0.28.0 that broke using sub-groups in regexp captures
Fixes #6228
2023-04-30 21:16:24 +05:30
Kovid Goyal
bc2af4acf9 Update changelog 2023-04-30 09:09:09 +05:30
Kovid Goyal
73f10aaf43 clipboard kitten: Fix a bug causing the last MIME type available on the clipboard not being recognized when pasting with arbitrary MIME types 2023-04-30 06:48:09 +05:30
Kovid Goyal
a7b4d07601 unicode_input kitten: Fix a regression in 0.28.0 that caused the order of recent and favorites entries to not be respected
Fixes #6214
2023-04-26 15:55:56 +05:30
Kovid Goyal
07bcc5ba61 version 0.28.1 2023-04-21 13:10:01 +05:30
Kovid Goyal
6e90bc1996 ... 2023-04-20 21:48:07 +05:30
Kovid Goyal
a09464dee9 Fix a regression in the previous release that broke usage of custom themes
Fixes #6191
2023-04-17 08:45:46 +05:30
Kovid Goyal
91700b3e42 Fix a bug in the Go code of the CSI key event parser
Fixes #6189
2023-04-16 15:31:56 +05:30
Kovid Goyal
39eff0fe8c Fix a regression in the previous release that broke the remote file kitten
Fixes #6186
2023-04-15 21:04:30 +05:30
Kovid Goyal
b81f457e9b version 0.28.0 2023-04-15 11:17:36 +05:30
Kovid Goyal
d4c5b8c899 Keyboard input: Fix text not being reported as unicode codepoints for multi-byte characters in the kitty keyboard protocol
Fixes #6167
2023-04-09 22:57:40 +05:30
Kovid Goyal
feb5da70a8 Clean up changelog a bit 2023-04-05 21:12:06 +05:30
Kovid Goyal
c3246051d4 ... 2023-04-05 18:08:58 +05:30
Kovid Goyal
dae49d788e ... 2023-04-01 10:51:32 +05:30
Kovid Goyal
fa094b2697 Update changelog 2023-03-30 07:24:12 +05:30
Kovid Goyal
e85473cee6 Linux Wayland: Fix animated images not being animated continuously
Fixes #6126
2023-03-27 13:43:37 +05:30
Kovid Goyal
f046884f23 Allow stopping of URL detection at newlines via url_excluded_characters
Fixes #6122
2023-03-21 08:04:42 +05:30
Kovid Goyal
fda2646dd3 Cleanup previous PR 2023-03-19 10:37:37 +05:30
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