Commit Graph

8137 Commits

Author SHA1 Message Date
Kovid Goyal
c8f26dd968 When text is received from the terminal program and the overlay line is active move the overlay line after drawing the text
This ensures the overlay line follows the current cursor position
2021-11-12 15:03:24 +05:30
Kovid Goyal
7e5cb50925 macOS: Also update IME position when new window is focused 2021-11-12 09:22:36 +05:30
Kovid Goyal
ffa755c723 macOS: Ensure IME position is correct on startup 2021-11-12 09:18:34 +05:30
Kovid Goyal
a060bf7223 Also unmark text on pressing esc
As with backspace, without this the preedit text is not cleared when the
IME is canceled by esc
2021-11-12 08:52:32 +05:30
Kovid Goyal
4ab5d97e9b macOS: Fix IME position incorrect after moving OS window 2021-11-12 08:51:03 +05:30
Kovid Goyal
81babd29e7 DRYer 2021-11-11 22:53:24 +05:30
Kovid Goyal
fac76ddedd DRYer 2021-11-11 22:41:59 +05:30
Kovid Goyal
f34cc1861a Clear marked text when text is inserted
This is apparently what Cocoa expects. Fixes committing pre-edit text no
longer working.
2021-11-11 22:35:02 +05:30
Kovid Goyal
bd4ed38a3c Dump more informatin about what cocoa does when processing key events 2021-11-11 22:32:30 +05:30
Kovid Goyal
8644fed534 Only unmark on backspace key 2021-11-11 22:05:39 +05:30
Kovid Goyal
ca9fdadf3c Dont clear marked text on every keyDown event
Let the input system do it for us. That wy we can hopefully use calls to
unmarkText as a signal to commit the pre-edit text.

Hopefully not clearing the marked text on key down doesnt break anything
else.
2021-11-11 21:14:53 +05:30
Kovid Goyal
228364e317 oops 2021-11-11 20:53:14 +05:30
Kovid Goyal
e65aee4533 Cleanup calls to unmarkText 2021-11-11 20:44:43 +05:30
Kovid Goyal
a1ca607f35 More work on file transmission 2021-11-11 20:05:54 +05:30
Kovid Goyal
efbf156f82 Add a note about mintty support of unscroll 2021-11-11 16:53:59 +05:30
Kovid Goyal
a2533e9a46 Render the progress bar for file receives 2021-11-11 16:32:06 +05:30
Kovid Goyal
09742af92b Forgot to remove some debug prints 2021-11-11 14:42:11 +05:30
Kovid Goyal
880de53d59 When remembering OS window sizes for full screen windows use the size before the window became fullscreen
Fixes #4221
2021-11-11 14:34:02 +05:30
Kovid Goyal
91a24dd2eb oops 2021-11-11 13:56:18 +05:30
Kovid Goyal
60e91b018a Wrap the glfw is fullscreen API 2021-11-11 12:46:13 +05:30
Kovid Goyal
9be37f7d2d cocoa is weird 2021-11-11 12:45:03 +05:30
Kovid Goyal
be79fc1c92 Save before fullscreen sizes even when using normal fullscreen on macOS 2021-11-11 12:40:56 +05:30
Kovid Goyal
502960bfeb Forgot to update the GLFW wrappers 2021-11-11 12:34:57 +05:30
Kovid Goyal
d95a00df73 GLFW API to check if window is fullscreen 2021-11-11 12:33:12 +05:30
Kovid Goyal
b3a9c1a100 Better error message when KITTY_LISTEN_ON is invalid 2021-11-10 08:27:45 +05:30
Kovid Goyal
4318d2d7d0 Cleanup previous PR
Doesnt need a separate changelog entry as its covered by the entry for
focus_visible_window
2021-11-09 22:23:48 +05:30
Kovid Goyal
c3ff888981 Merge branch 'feat-vis-sel-custom-chars' of https://github.com/page-down/kitty 2021-11-09 22:10:00 +05:30
Kovid Goyal
7c85616dcf Add a note about arguments to layout_action rotate 2021-11-09 21:33:55 +05:30
pagedown
353a48d913 Allows to configure the characters for visual window select 2021-11-09 21:05:31 +08:00
Kovid Goyal
4e736e83a3 Also release excess memory from pagerhist buffer when clearing 2021-11-09 10:21:47 +05:30
Kovid Goyal
57583d6b00 When clearing scrollback release used memory beyond ~2000 lines 2021-11-09 10:14:52 +05:30
Kovid Goyal
98dcb32a0c Dedicated function to free a segment 2021-11-09 10:07:14 +05:30
Kovid Goyal
fba5e3a46d Add note for packagers to create kitty shell integration package for servers 2021-11-08 11:56:08 +05:30
Kovid Goyal
2122304515 Only run manual shell integration is KITTY_INSTALLATION_DIR is set
Also add a note about how to get it to work with SSH.
2021-11-08 11:50:21 +05:30
Kovid Goyal
80dbebf0ad Remove unused code 2021-11-08 11:43:14 +05:30
Kovid Goyal
0c160eab7b Avoid needing to exec kitty to get manual shell integration 2021-11-08 11:37:50 +05:30
Kovid Goyal
4841502959 Use a single kitty invocation for manual shell integration 2021-11-08 11:27:10 +05:30
Kovid Goyal
8218df82f2 Add function to get path to integration script for the current shell
Makes setting up manual shell integration much easier. Also clean up
integration docs.
2021-11-08 11:11:16 +05:30
Kovid Goyal
fadc1b539b Merge branch 'docs-ksi-fish' of https://github.com/page-down/kitty 2021-11-08 10:24:49 +05:30
pagedown
c8162324ed ... 2021-11-08 11:36:40 +08:00
pagedown
2c46378886 Add how the fish shell integration works and how to configure it manually 2021-11-08 11:26:15 +08:00
Kovid Goyal
cf7e43fa26 Simplify nested if 2021-11-07 19:23:31 +05:30
Kovid Goyal
b5e8b5a124 Allow users to modify XDG_DATA_DIRS in the fish rc files
The only downside of this new technique is that it is no
longer possible to set XDG_DATA_DIRS to an empty var in kitty.conf
Since an empty XDG_DATA_DIRS breaks lots fo things, I dont think that
is a big concern.
2021-11-07 18:59:50 +05:30
Kovid Goyal
6fa0a21b3c Cancel visual select when its OS Window or Tab is closed 2021-11-07 18:12:50 +05:30
Kovid Goyal
c43637f6cc Dont copy prompt start bits to multiple lines when resizing the screen
This makes it unnecessary to modify the prompt marking protocol to
distinguish consecutive prompts without output in between
2021-11-07 18:00:06 +05:30
Kovid Goyal
f48a430493 Use --global when re-exporting XDG_DATA_DIRS 2021-11-07 10:31:57 +05:30
Kovid Goyal
a1eb341817 ... 2021-11-07 10:25:13 +05:30
Kovid Goyal
cc2419911c shell environ modification should only happen for actual shell processes 2021-11-07 10:22:37 +05:30
Kovid Goyal
2f5d3b073d Ignore exceptions in the environment modifier 2021-11-07 10:13:09 +05:30
Kovid Goyal
4c0a7a9566 KSI should be set even when no-rc is specified 2021-11-07 10:10:19 +05:30