12003 Commits

Author SHA1 Message Date
pagedown
f8b53df5c2
macOS: Fix resize_in_steps being applied when double-clicking on the
title bar to maximize the window
2023-02-24 19:56:51 +08:00
Kovid Goyal
c5149dec24
... 2023-02-23 22:19:45 +05:30
Kovid Goyal
e41897f93f
Also clean *_generated.bin files 2023-02-23 21:24:59 +05:30
Kovid Goyal
5ce85292b7
Cleanup previous PR
1) Fix a text_len leaking
2) No need to re-decode overlay_text
3) get_ime_cursor_position should not change the current global callback OS window
2023-02-23 21:19:30 +05:30
Kovid Goyal
dba8d278cb
Merge branch 'ime' of https://github.com/page-down/kitty 2023-02-23 20:50:25 +05:30
Kovid Goyal
79e99f7e3a
Dont pass PWD to go build
Fixes #6051
2023-02-23 14:31:30 +05:30
pagedown
9a598237c6
macOS: Allow IME to actively get the cursor position in real time
IME will automatically get the display position when needed, which keeps
it consistent with the overlay as much as possible.

Fix the issue that when IME is activated after mouse click, it is
displayed at the wrong position.
2023-02-22 22:36:20 +08:00
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
Kovid Goyal
de188faf55
Fix #6048 2023-02-22 19:51:33 +05:30
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
Kovid Goyal
1f84e2d4e5
Merge branch 'pr-fix-screen-switching' of https://github.com/sergei-grechanik/kitty 2023-02-21 10:20:32 +05:30
Sergei Grechanik
6edf145b73 Fix image distortion when switching between screens 2023-02-20 19:46:25 -08:00
Kovid Goyal
fbfb779a19
Clarify what pygments style does 2023-02-20 16:38:22 +05:30
Kovid Goyal
71b07090c2
End APC and PM escape code on BEL as well as ST 2023-02-19 15:24:23 +05:30
Kovid Goyal
6619804df0
... 2023-02-18 17:23:50 +05:30
Kovid Goyal
24b2802619
Merge branch 'fix-os-window-state' of https://github.com/page-down/kitty 2023-02-18 17:22:43 +05:30
pagedown
b0c28148b1
macOS: Fix window not taking up full height when the title bar is hidden
When the remembered window size is the full screen height, the window
height decreases after hiding the title bar.
2023-02-18 19:35:01 +08:00
pagedown
75a4f45a23
... 2023-02-18 17:43:45 +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
1b76cee9b4
Merge branch 'dependabot/go_modules/golang.org/x/image-0.5.0' of https://github.com/kovidgoyal/kitty 2023-02-17 20:18:02 +05:30
dependabot[bot]
aad3704803
Bump golang.org/x/image from 0.3.0 to 0.5.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases)
- [Commits](https://github.com/golang/image/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 14:44:32 +00:00
Kovid Goyal
00e2c66ea3
Add a link to the pets nvim plugin 2023-02-17 10:41:03 +05:30
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
c73c165be1
Cleanup change_os_window_state 2023-02-16 16:10:19 +05:30
Kovid Goyal
e6e25c4ece
Merge branch 'patch-1' of https://github.com/jle64/kitty 2023-02-15 22:01:17 +05:30
Jonathan Lestrelin
9ce11499de
Add x-scheme-handler/ssh to mimetypes
Add x-scheme-handler/ssh to mimetypes so that kitty open can be used to open ssh links by default.
2023-02-15 16:24:47 +00:00
Kovid Goyal
ac5298ce76
Finish porting unicode input 2023-02-15 17:42:31 +05:30
Kovid Goyal
1321a96ae7
More work on porting unicode input 2023-02-15 17:14:09 +05:30
Kovid Goyal
2b87a601a0
More work on porting unicode input 2023-02-15 10:48:54 +05:30
Kovid Goyal
73a3366d53
Fix atomic write not working when file does not exist 2023-02-15 10:46:47 +05:30
Kovid Goyal
7223fdaa38
API to set the text at the prompt 2023-02-15 10:16:25 +05:30
Kovid Goyal
67436a48cd
New API to suspend a loop 2023-02-14 22:27:41 +05:30
Kovid Goyal
9aaca33f15
... 2023-02-14 22:27:10 +05:30
Kovid Goyal
a5eac42d92
More work on unicode input 2023-02-14 21:33:21 +05:30
Kovid Goyal
fb66cbc792
Forgot to exclude some control chars from unicode name based searching 2023-02-14 21:33:21 +05:30
Kovid Goyal
311a0cbfe9
More work on porting unicode input 2023-02-14 21:33:21 +05:30
Kovid Goyal
53e33a80ba
Start work on porting unicode input kitten to Go 2023-02-14 21:33:21 +05:30
Kovid Goyal
a2e4efbb14
API to save/restore cursor position 2023-02-14 21:33:21 +05:30
Kovid Goyal
1aa9f1e62d
Allow faint as an alias for dim 2023-02-14 21:33:21 +05:30
Kovid Goyal
32e0a56a94
Some more useful generic slice utilities 2023-02-14 21:33:21 +05:30
Kovid Goyal
601a333b0e
Atomically update cached values file 2023-02-14 21:33:21 +05:30
Kovid Goyal
cc5107d0db
Convenient way to load/save JSON data 2023-02-14 21:33:20 +05:30
Kovid Goyal
bee853cc6a
ignore *.bin files in version control 2023-02-14 21:33:09 +05:30
Kovid Goyal
ec375ad3c6
Dont strip title for tabs to allow for leading and trailing whitespace. Fixes #6013 2023-02-14 21:31:23 +05:30
Kovid Goyal
5a7abd6214
CodeQL does not work for Go code 2023-02-14 11:15:44 +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
31b804d8fb
Merge branch 'add-python-typing-for-send_mouse_event' of https://github.com/trygveaa/kitty 2023-02-14 10:00:16 +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
Kovid Goyal
d6aecf172d
Merge branch 'fix-macos-fullscreen' of https://github.com/page-down/kitty 2023-02-14 09:49:19 +05:30
Trygve Aaberge
8a3376261e Add send_mouse_event to fast_data_types.pyi 2023-02-13 21:52:41 +01:00