Commit Graph

8178 Commits

Author SHA1 Message Date
Kovid Goyal
cb2a99bd0e Merge branch 'def-conf-shortcuts' of https://github.com/page-down/kitty 2021-11-15 17:15:44 +05:30
Kovid Goyal
2cc3922108 Resizing the screen does not cause multiple consecutive output start anymore 2021-11-15 15:17:34 +05:30
Kovid Goyal
e771e1ea8a Do not call range_line_() with unsafe parameters in find_cmd_output 2021-11-15 15:17:34 +05:30
Kovid Goyal
6afaec1d62 Use a single function for getting command output 2021-11-15 15:17:34 +05:30
Kovid Goyal
80b5f31256 Cleanup handling of types of kitten input 2021-11-15 15:17:34 +05:30
Kovid Goyal
c96e6822e1 Dont rely on historybuf->count being a constant
This may become dynamically resizable someday
2021-11-15 15:17:34 +05:30
pagedown
e4781b8af0 ... 2021-11-15 15:17:34 +05:30
pagedown
f3dd2a8bfd Get the first command output on screen and the last scrolled one 2021-11-15 15:17:33 +05:30
pagedown
9fe9c74021 Save the last jumped prompt position 2021-11-15 15:17:33 +05:30
pagedown
09c6c3e804 Unify modifier keys ordering ctrl+shift+alt/opt+cmd, and names 2021-11-15 17:38:07 +08:00
pagedown
f5023e3269 Unify option key names, abbreviations, and ordering 2021-11-15 17:26:37 +08:00
pagedown
2db7f559e3 Add the option key abbreviation opt 2021-11-15 17:22:20 +08:00
pagedown
b696d3f960 Include all default shortcuts in the commented config 2021-11-15 17:05:45 +08:00
Kovid Goyal
bc454b4417 Fix --long-opt= completion for bash as well 2021-11-14 13:35:36 +05:30
Kovid Goyal
aa6a800d1a Fix completion for --long-opt= form on zsh 2021-11-14 13:28:09 +05:30
Kovid Goyal
536d6e00d9 Further simplify logic for PUA space ligatures 2021-11-14 12:47:54 +05:30
Kovid Goyal
725a04b321 Fix #4236 2021-11-14 12:42:08 +05:30
Kovid Goyal
3ff8cc58e1 Ignore invalid unicode condepoints in command lines 2021-11-14 11:59:02 +05:30
Kovid Goyal
4fc8267264 Fix #4235 2021-11-14 10:23:42 +05:30
Kovid Goyal
0965fc45f2 macOS: Fix keyboard input not working after toggling traditional fullscreen till the window is clicked in 2021-11-13 14:20:18 +05:30
Kovid Goyal
181178b0ea macOS: use a consistent technique to get window size
This fixes an issue where restoring from traditional fullscreen to a
maximized state was resulting in an incorrectly sized frame buffer. Now
all framebuffer and window size calculation happens in the same way in
all the various glfw codepaths that do it.
2021-11-13 13:42:12 +05:30
Kovid Goyal
95e6e80921 Restore maximized window state when returning from fullscreen 2021-11-13 12:22:52 +05:30
Kovid Goyal
f36b71350d Use an anonymous struct for before_fullscreen 2021-11-13 12:15:27 +05:30
Kovid Goyal
3483722475 Remove pointless code 2021-11-13 12:13:28 +05:30
Kovid Goyal
56e63baf5a macOS: manually trigger windowDidResize when fullscreening
Fixes #4230
Fixes #4229
2021-11-13 11:49:55 +05:30
Kovid Goyal
0830e66e76 broadcast kitten: Show a "fake" cursor in all windows being broadcast too
Fixes #4225
2021-11-12 22:59:20 +05:30
Kovid Goyal
74a5d3a25e allow multiple close and removal actions 2021-11-12 21:16:21 +05:30
Kovid Goyal
4fb29e1b6b Infrastructure to render the unfocused cursor in multiple windows 2021-11-12 20:42:37 +05:30
Kovid Goyal
2c4f616213 Make it easier to reuse collect_cursor_info() 2021-11-12 20:31:29 +05:30
Kovid Goyal
75afe7cd33 Also move overlay line when handling SGR 2021-11-12 19:56:44 +05:30
Kovid Goyal
80eb78033f Better name for macro
What it actually does is move the overlay line to the new cursor location
2021-11-12 19:51:28 +05:30
Kovid Goyal
68013e8fe7 Move overlay line for a few more commands 2021-11-12 19:38:54 +05:30
Kovid Goyal
7fe32301c4 Use __func__ instead of manually specifying function names 2021-11-12 19:23:09 +05:30
Kovid Goyal
41ddc7d33f DRYer 2021-11-12 18:26:18 +05:30
Kovid Goyal
eff5840645 overlay line should move even when using REP 2021-11-12 18:03:37 +05:30
Kovid Goyal
ddf0242f56 Add a changelog entry for IME changes 2021-11-12 17:58:05 +05:30
Kovid Goyal
eae5c65d3e Also move overlay when getting backspace from child
zsh for some reason sends this when you send it a word. Fixes #4219
2021-11-12 17:56:04 +05:30
Kovid Goyal
c85b545f8d Add a debug print when receiving text from child while overlay is active 2021-11-12 17:43:01 +05:30
Kovid Goyal
f24dc80c49 Send IME events in the correct sequence when cocoa both inserts text and marks new text in response to the same key event 2021-11-12 17:27:37 +05:30
Kovid Goyal
9a9de0038c Remove unused code 2021-11-12 15:10:33 +05:30
Kovid Goyal
35626d3929 Update IME position when overlay line is moved on input from child process 2021-11-12 15:07:25 +05:30
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