8018 Commits

Author SHA1 Message Date
Luflosi
e82e57a30c
Remove unused code
Since 99d9cb0b0d6498d678de426a81e622dd3e3750d6 runs all tests with HOME set to a temporary directory, this code setting the cache directory to a temporary directory is no longer needed. `cache_dir()` will choose a directory in the home directory if neither KITTY_CACHE_DIRECTORY or XDG_CACHE_HOME are set.
2021-10-31 11:42:55 +01:00
Kovid Goyal
336c7ddca8
DRYer 2021-10-31 15:41:19 +05:30
Kovid Goyal
4ffcbc8274
Wake up talk loop when not sending response to peer 2021-10-31 15:22:22 +05:30
Kovid Goyal
22673ebd90
... 2021-10-31 14:06:02 +05:30
Kovid Goyal
b1c0398bba
Avoid unnecessary CPU churn when reading from stdin for @ send-text 2021-10-31 14:04:07 +05:30
Kovid Goyal
6310517ff2
@ send-text: Fix reading from stdin when RC is over a socket 2021-10-31 13:55:11 +05:30
Kovid Goyal
4ff3d6a645
More work on file transfer 2021-10-31 13:12:23 +05:30
Kovid Goyal
23570cc5f7
... 2021-10-31 11:55:00 +05:30
Kovid Goyal
dc09a5183a
Exclude the currently active window when visually selecting 2021-10-31 11:37:38 +05:30
Kovid Goyal
8458b9e7d6
Allow specifying a title for @ select-window 2021-10-31 11:08:28 +05:30
Kovid Goyal
51900996ea
When selecting in stack dont exclude the active window 2021-10-31 11:05:00 +05:30
Kovid Goyal
663da130ae
Show the choose msg in the OS Window title bar during a visual select 2021-10-31 11:01:34 +05:30
Kovid Goyal
c8b1724ecf
Function to change OS Window title from python 2021-10-31 10:56:36 +05:30
Kovid Goyal
c289af8f07
When initiating a visual select make sure its tab is the active tab 2021-10-31 10:45:59 +05:30
Kovid Goyal
da7fa53b1a
Consolidate visual select cleanup in one place
Also ensure callback is called even when only a single window is present
and when selecting in stack
2021-10-31 10:36:23 +05:30
Kovid Goyal
d160db1bcd
... 2021-10-31 10:20:27 +05:30
Kovid Goyal
a788cd9f64
Also clear the current visual select when selecting in stack layout 2021-10-31 10:15:06 +05:30
Kovid Goyal
6997e36670
... 2021-10-31 10:11:50 +05:30
Kovid Goyal
1893b3ce0f
Store visual select in flight information in a single object 2021-10-31 10:10:20 +05:30
Kovid Goyal
576abecf7d
oops forgot to call cancel current visual select when starting a new one 2021-10-31 09:54:28 +05:30
Kovid Goyal
b9b799533b
Eh, mypy doesnt let me ignore requests on CI 2021-10-31 09:40:03 +05:30
Kovid Goyal
70a01955b8
Fix timeout of @ select-window not canceling the visual select 2021-10-31 09:38:55 +05:30
Kovid Goyal
5f9409a91d
Fix visual select failing if triggerred when there is already an active visual select 2021-10-31 09:32:12 +05:30
Kovid Goyal
32805ca968
More work on file transfer 2021-10-31 09:28:20 +05:30
Kovid Goyal
8dfb0c6675
Dont bother with type checking requests in the publish script 2021-10-31 09:25:39 +05:30
Kovid Goyal
7428d42c16
Restore environ after running tests 2021-10-31 09:20:06 +05:30
Kovid Goyal
99d9cb0b0d
Run tests with HOME set to a tempdir 2021-10-31 08:20:46 +05:30
Kovid Goyal
80ab60f1b6
Merge branch 'fix-clang-warning' of https://github.com/Luflosi/kitty 2021-10-30 20:30:27 +05:30
Luflosi
a1d24028b8
Fix Clang warning
Without this, kitty fails to compile:
```
glfw/cocoa_init.m:462:14: error: case value not in enumerated type
      'NSEventModifierFlags' (aka 'enum NSEventModifierFlags')
      [-Werror,-Wswitch]
        case (NSEventModifierFlagShift | NSEventModifierFlagOption):
             ^
glfw/cocoa_init.m:465:14: error: case value not in enumerated type
      'NSEventModifierFlags' (aka 'enum NSEventModifierFlags')
      [-Werror,-Wswitch]
        case (NSEventModifierFlagShift | NSEventModifierFlagCommand):
             ^
```
I thought about changing the type of the `modifierFlags` function parameter from `NSEventModifierFlags` to `NSUInteger` since `NSEventModifierFlags` is defined as an enum according to https://developer.apple.com/documentation/appkit/nseventmodifierflags?language=objc and is technically not the proper type for a bit field. But since Apple themselves define `modifierFlags` as `NSEventModifierFlags` according to https://developer.apple.com/documentation/appkit/nsevent/1534405-modifierflags?language=objc, I think the fix in this commit is better.
This warning was introduced with commit f9944e614088c4977ad9c9f1d1b44d97643e8d5b.
2021-10-30 16:25:20 +02:00
Kovid Goyal
d03f4dbc98
More work on file transfer 2021-10-30 16:54:27 +05:30
Kovid Goyal
f1573654b9
Update changelog for previous PR 2021-10-30 15:16:11 +05:30
Kovid Goyal
e703103fa8
Merge branch 'bgimage-options' of https://github.com/itepechi/kitty into bg 2021-10-30 15:04:41 +05:30
Kovid Goyal
6241369b6c
Cancel an async request on timeout so no spurious data is sent to the tty 2021-10-30 14:46:48 +05:30
Kovid Goyal
2a637e4220
Simplify sending of async response 2021-10-30 14:10:09 +05:30
Kovid Goyal
816360c275
A new remote control command to visually select a window
Fixes #4165
2021-10-30 13:56:48 +05:30
Kovid Goyal
c541d7e349
Document --self in the launch rc protocol 2021-10-30 12:36:58 +05:30
Kovid Goyal
df70d8661a
Pass the peer id to commands 2021-10-30 12:29:27 +05:30
Kovid Goyal
c3daa969fa
Allow individual commands to control the response timeout 2021-10-30 12:20:37 +05:30
Kovid Goyal
66a7c3bc4d
Simplify handling of --no-response 2021-10-30 12:15:37 +05:30
Kovid Goyal
3553b3ce3d
Pass the peer id to python for potentially async replies 2021-10-30 08:31:13 +05:30
itepechi
9289c2de69 Refactor background_image_anchor for cleaner code 2021-10-30 04:34:33 +09:00
itepechi
dac1612cb0 Calculate background image position on the GPU 2021-10-30 04:34:33 +09:00
itepechi
87d79c7415 Change the naming of directions in option background_image_anchor for consistency
Replaced cardinal directions with "relative" directions.
2021-10-30 04:34:33 +09:00
itepechi
86d7aaa03a Add clamped to option background_image_layout 2021-10-30 04:34:33 +09:00
itepechi
cae31ab336 Read/Write bganchor directly from the options' state
Slight performance improvement, maybe?
Also, `kitty/graphics.h` has been reverted to the original version;
this version would be better in that aspect too.
2021-10-30 04:34:32 +09:00
itepechi
2aa01c58a1 Add option background_image_anchor to configure bgimage position 2021-10-30 04:34:32 +09:00
Kovid Goyal
ee852cf5fc
More work on file transmission 2021-10-29 21:52:49 +05:30
Kovid Goyal
5eb87b9f10
Micro-optimizations of fish sheel integration script
By @page-down
2021-10-29 21:51:48 +05:30
Kovid Goyal
820a893d75
More work on file transfer 2021-10-29 15:01:31 +05:30
Kovid Goyal
ce823e4b08
Fix incorrect scissoring for window resize counter
It uses draw_graphics, which uses a scissor, but the scissor was set by
the last call to draw_cells() which is not called during a resize,
leaving us with an incorrect scissor.

Fixes #4160
2021-10-28 21:45:15 +05:30