Commit Graph
11039 Commits
Author SHA1 Message Date
pagedown cc84ee9734 Refactor: Replace string concat with f-string 2022-01-27 17:57:25 +08:00
pagedown b5ad030a14 macOS: Categorize and update bundle info plist
Allow toggling input sources using CapsLock.
Allow programs to request photo, motion, speech recognition permissions.
Add local network unicast or multicast usage description.
Remove iOS-only items.
2022-01-27 17:55:43 +08:00
Kovid Goyal 40b5c43920 ... 2022-01-27 12:14:42 +05:30
Kovid Goyal 9f2be8b696 Fix #4573 2022-01-27 11:29:33 +05:30
Kovid Goyal 4397e60206 Add changelog entry for cursor shape restoration 2022-01-27 11:19:53 +05:30
Kovid Goyal caab98e70b remove duplicate changelog entry 2022-01-27 11:18:15 +05:30
Kovid Goyal 11a4b75ffa Merge branch 'fix-ime' of https://github.com/page-down/kitty 2022-01-27 10:46:37 +05:30
Kovid Goyal d25dceacdd Merge branch 'remote-control' of https://github.com/page-down/kitty 2022-01-27 10:38:43 +05:30
pagedown b9a612fb9c macOS: Clean up any text that may not have been sent when loses focus 2022-01-27 12:37:17 +08:00
pagedown 3b9a7914ee Also add alias --dont-take-focus to new_window 2022-01-27 12:28:40 +08:00
pagedown f646dfa238 Cancel IME for active kitty or OS window only 2022-01-27 11:48:48 +08:00
Kovid Goyal 0b2a533b44 Merge branch 'fix-ime' of https://github.com/page-down/kitty 2022-01-27 08:03:08 +05:30
Kovid Goyal 0e1246c15b Merge branch 'fix-cache-defrag' of https://github.com/Luflosi/kitty 2022-01-27 07:49:54 +05:30
pagedown a987fb81a0 Emits an IME lost focus event when the window lost focus or closed 2022-01-27 10:13:57 +08:00
pagedown 4d920b182f macOS: Cancel IME composition when receive loss of focus event 2022-01-27 10:07:18 +08:00
pagedown 22f077b384 Clear overlay text after screen loses focus 2022-01-27 09:53:40 +08:00
Luflosi 4c78a50dcf Add more copy_file_range() and sendfile() errno exceptions
On ZFS `copy_file_range()` and `sendfile()` fail for some reason, so add `EINVAL` to the list of error codes for which the code will fall back to a slower implementation.
While we are at it, add all the error codes from https://go.dev/src/internal/poll/copy_file_range_linux.go for different filesystems and older kernel versions to the list of error codes from `copy_file_range()`.
Without this, the cache defragmentation and the test testing it (`test_disk_cache`) fail with the error message "Failed to copy data to new disk cache file during defrag: Invalid argument" when the cache directory is stored on ZFS.
Perhaps this is caused by me running ZFS 2.1.2 on Linux 5.16.0, which is not a supported combination. This ZFS version is only "compatible with 3.10 - 5.15 kernels" according to the release notes. Or maybe it's just not implemented.
To reproduce the problem, execute `KITTY_CACHE_DIRECTORY=/path/to/zfs python3 test.py` with `KITTY_CACHE_DIRECTORY` pointing to a directory on ZFS.
2022-01-27 00:45:30 +01:00
Luflosi 9d87b08c52 Fix logic error in file copy helper functions
If `errno` is `EAGAIN`, the second if statement is never true and if `errno` is not `EAGAIN`, the function returns immediately, not checking the second if statement.
This commit fixes this.
A logically equivalent change would have been to simply swap the two if statements but I find this version to be more readable.
2022-01-26 23:35:54 +01:00
Kovid Goyal 97e58c5b86 Merge branch 'macos-ime' of https://github.com/page-down/kitty 2022-01-26 16:49:10 +05:30
pagedown b3f678cf6f Improve debug log 2022-01-26 18:28:37 +08:00
pagedown 7f3715cd3e Use the input context instance from GLFWContentView 2022-01-26 18:25:37 +08:00
pagedown a3aaaa1efb macOS: Explicitly cancel IME composition when losing the focus 2022-01-26 18:21:20 +08:00
Kovid Goyal d1531632a2 Add some notes on how to run IBUS for testing 2022-01-26 10:47:18 +05:30
Kovid Goyal 2151969ae5 IBUS: Hide the pre-edit text when receiving a HidePreeditText message 2022-01-26 10:12:48 +05:30
Kovid Goyal 44e3a6f0fb Shell integration: Set cursor shape to whatever is specified in the cursor_shape option when executing a command rather than the block shape 2022-01-25 13:30:48 +05:30
Kovid Goyal 364bad504c CSI 0 q should blink cursor as per xterm docs and behavior 2022-01-25 13:29:44 +05:30
Kovid Goyal 0648b4f568 Merge branch 'ksi-fish' of https://github.com/page-down/kitty 2022-01-25 11:33:06 +05:30
pagedown a47b3bf578 Fix the blinking block cursor shape for commands in bash integration 2022-01-25 14:00:28 +08:00
pagedown 3aec573d40 Use blinking block for commands consistent with zsh and bash integration 2022-01-25 13:58:11 +08:00
pagedown 5d4b0c0bef Set the pre-exec cursor shape in fish vi mode and config on demand 2022-01-25 13:01:54 +08:00
pagedown 11c0343420 Add comments and minor tweaks to fish integration 2022-01-25 11:52:34 +08:00
Kovid Goyal 287b843d13 add a comment 2022-01-24 22:14:56 +05:30
Kovid Goyal 1fea4777fa zsh shell integration: Restore cursor to blinking block before running external commands 2022-01-24 22:06:52 +05:30
Kovid Goyal b5a2f94185 The open_actions() test needs options set 2022-01-24 15:21:32 +05:30
Kovid Goyal 1000376a4f ... 2022-01-24 09:50:37 +05:30
Kovid Goyal 02e1272502 Slightly improve debug text 2022-01-23 20:40:41 +05:30
Kovid Goyal 393e5eb158 Merge branch 'fix-macos-ime' of https://github.com/page-down/kitty 2022-01-23 20:38:43 +05:30
pagedown b2d0c35fc2 Clear the pre-edit text only when inserting non-control characters
Maintains the pre-edit input state after pressing the modifier key
combination or function key while using the IME.
2022-01-23 22:22:24 +08:00
pagedown 3ee12082f2 No need to update the pre-edit text 2022-01-23 22:16:26 +08:00
pagedown 1ce4fc9c8c Check for ASCII control chars before sending text 2022-01-23 21:40:27 +08:00
pagedown 57e2866b68 macOS: Fix caps_lock not clearing pre-edit text when using IME 2022-01-23 18:50:55 +08:00
pagedown 195fc1a270 Minor tweaks to macOS key event debug log 2022-01-23 18:45:18 +08:00
Kovid Goyal 39e56f1864 Dont check the return value of handleEvent
It's apparently meaningless, despite what the docs say
2022-01-23 12:47:29 +05:30
Kovid Goyal da96dfcad2 Forgot to use override 2022-01-23 11:33:58 +05:30
Kovid Goyal 053bb999d3 Merge branch 'fix-macos-ime-modifiers' of https://github.com/page-down/kitty 2022-01-23 10:41:45 +05:30
Kovid Goyal e914f0df8e Make FAIL_WARN a boolean 2022-01-23 10:12:11 +05:30
Kovid Goyal 78cd83845f Fix sphinx failing to highlight fish 2022-01-23 09:43:15 +05:30
Kovid Goyal f6228cc81e Merge branch 'fix-macos-ime' of https://github.com/page-down/kitty 2022-01-23 08:17:16 +05:30
pagedown 83884f42f8 macOS: Fix text insertion by modifier keys when using IME 2022-01-23 01:50:37 +08:00
pagedown fbaf3e2f49 Update preedit text with markedText
This fixes the preedit text being cleared when using shortcut keys to
switch candidate text in the input state.
2022-01-23 00:01:08 +08:00