Commit Graph
5370 Commits
Author SHA1 Message Date
pagedown 74921c1373 Refactor: Sorting items when generating files
Make the files generated in different environments consistent.
2022-01-29 20:14:56 +08:00
Kovid Goyal 9f250fdf26 Only dump env var names not values 2022-01-29 11:55:26 +05:30
Kovid Goyal d92eba82bc Dump env vars seen by kitty for debug config 2022-01-29 11:36:58 +05:30
pagedown dc61adf9d8 Refactor: More f-string 2022-01-28 19:34:13 +08:00
Kovid Goyal e0c4a90aa3 DRYer 2022-01-28 13:21:54 +05:30
Kovid Goyal 4f6c16984a Do not send arrow key presses to shells when clicking on a window with the mouse to focus it
Fixes #4128
2022-01-27 20:07:17 +05:30
Luflosi 347c0d4de4 Fix compilation on macOS 10.12
Without this commit, kitty would fail to compile on macOS 10.12 with the error "use of undeclared identifier".
This problem was introduced in f7be4fab48, where some code was moved to a different file, without moving the corresponding `#define` statements.
2022-01-27 12:21:17 +01: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 11a4b75ffa Merge branch 'fix-ime' of https://github.com/page-down/kitty 2022-01-27 10:46:37 +05:30
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
pagedown a987fb81a0 Emits an IME lost focus event when the window lost focus or closed 2022-01-27 10:13:57 +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 364bad504c CSI 0 q should blink cursor as per xterm docs and behavior 2022-01-25 13:29:44 +05:30
Kovid Goyal c0be0f74d8 Use commit text instead of a zero key event
Thanks @page-down
2022-01-22 21:11:26 +05:30
Kovid Goyal a9e014226e Merge branch 'docs' of https://github.com/page-down/kitty 2022-01-22 20:58:30 +05:30
pagedown b498d86436 Docs: Add modifier key names and aliases 2022-01-22 23:08:44 +08:00
Kovid Goyal ff836a85aa Special case the IME injecting text in on_key_input 2022-01-22 20:00:03 +05:30
Kovid Goyal f21ddae94f Handle setMarkedText called from the event loop
Also pass through text with zero key
2022-01-22 16:08:50 +05:30
Kovid Goyal 5f4e519d61 ... 2022-01-22 15:13:53 +05:30
Kovid Goyal 720bf7efd6 Fix mouse position reported incorrectly on click event in a newly created window if the mouse has never moved in that window 2022-01-22 15:10:14 +05:30
Kovid Goyal 08f159c2ba TypeCheck underline style names 2022-01-22 12:41:26 +05:30
Kovid Goyal d219654387 Use a dedicated choose() method matching confirm() 2022-01-22 12:27:20 +05:30
Kovid Goyal ce7282a53c DRYer 2022-01-22 10:47:52 +05:30
Kovid Goyal 0d33380e6a Cleanup previous PR
yesno default should be yes.
Pressing q to quit is undiscoverable
Clicking empty cells should not trigger buttons as that is
undiscoverable and possibly surprising
2022-01-22 10:44:01 +05:30
Kovid Goyal 9944b895a6 Merge branch 'kitten-ask' of https://github.com/page-down/kitty 2022-01-22 10:06:52 +05:30
pagedown 7ef73babdd Use fixed values for unchanging dict to replace split and for loops 2022-01-22 11:36:04 +08:00
pagedown a47aca6fdb Add new dotted and dashed underline enum
Also use "straight" for single underline, consistent with the protocol
extension document.
2022-01-22 11:00:49 +08:00
pagedown bf9d47fddd ... 2022-01-22 09:51:28 +08:00
pagedown d29faa0986 Allow tab title to be set to empty to use window title 2022-01-22 03:28:42 +08:00
pagedown 88ee5e95fc Add default choices for features that use ask kitten 2022-01-22 03:21:59 +08:00
pagedown 9a119255fe ask kitten: Use the default value as input text
Prefill the current value when changing the tab title.
2022-01-22 03:11:39 +08:00
Kovid Goyal 7e82179c79 ... 2022-01-21 21:20:49 +05:30
Kovid Goyal f9cfb6f989 use sphinx extlinks instead of custon roles 2022-01-21 08:19:57 +05:30
Kovid Goyal 9caa6bb306 Nicer event printing 2022-01-19 14:32:03 +05:30
Kovid Goyal acf227803f Move event formatting into the types 2022-01-19 14:30:08 +05:30
Kovid Goyal f255c15fa9 DRYer 2022-01-19 14:04:14 +05:30
Kovid Goyal 7ce74ac688 Also change string based on event type 2022-01-19 13:58:45 +05:30
Kovid Goyal 6090673bb5 DRYer 2022-01-19 13:56:02 +05:30
Kovid Goyal d1b5420b08 Display space as a word when printing keys 2022-01-19 13:33:53 +05:30
Kovid Goyal e0f2b96fd2 Merge branch 'debug-config' of https://github.com/page-down/kitty 2022-01-19 13:16:26 +05:30
Kovid Goyal 47fdce6483 remove executable perms from boss.py 2022-01-19 13:12:52 +05:30
pagedown bac84f31b3 Refactor the print functions to make it easier to use in kitten 2022-01-19 15:26:02 +08:00
Kovid Goyal 0ae928f409 Increase max cache size for distribute_dots
Since it is now also used to render dotted underlines
2022-01-19 12:00:17 +05:30
pagedown 7bf7cc284d Add the missing mouse triggers click (-2) and double-click (-3) 2022-01-19 14:12:39 +08:00
pagedown ff1efebf70 Fix mouse maps are indented with one more space 2022-01-19 14:07:45 +08:00