Commit Graph

14367 Commits

Author SHA1 Message Date
Kovid Goyal
81e99f46f1 Clarify the semantics of close notification responses
Also, simplify the escape code, not requiring an extra p value.
Default to not responding.
2024-07-24 06:39:28 +05:30
Kovid Goyal
a4a9d13ee0 Add a note on the best way to use the query escape code 2024-07-23 23:21:27 +05:30
Kovid Goyal
aa1a9332ef Allow closing notifications without a status return 2024-07-23 23:09:11 +05:30
Kovid Goyal
7741799f78 Start work on implementing closing of notifications 2024-07-23 22:05:05 +05:30
Kovid Goyal
db6f62a749 Desktop notifications protocol: Add support for closing previous notifications
Feel free to comment if you have concerns. Not yet implemented in kitty.
Fixes #7659
2024-07-23 21:42:00 +05:30
Kovid Goyal
9484814c3f Specify that unknown payload types should be ignored 2024-07-23 21:14:29 +05:30
Kovid Goyal
786b7aa7c7 Add tests for i=0 in responses when no id specified 2024-07-23 20:45:52 +05:30
Kovid Goyal
bc3ff1b649 ... 2024-07-23 20:39:50 +05:30
Kovid Goyal
c4baed73a2 Forgot about supporting multiplexers in the desktop notification query protocol 2024-07-23 20:35:26 +05:30
Kovid Goyal
3cf6db445b Also respond about urgency support in the query response 2024-07-23 20:24:18 +05:30
Kovid Goyal
36a3b33b02 Note which version of kitty gained support for querying desktop notifications protocol 2024-07-23 20:20:44 +05:30
Kovid Goyal
e14894888c Desktop notifications protocol: Add support for querying if the terminal emulator supports the protocol
Fixes #7658
2024-07-23 20:16:25 +05:30
Kovid Goyal
b97b16da58 DRYer 2024-07-23 17:36:41 +05:30
Kovid Goyal
d73bb83741 Simplify render cache to use unique file identity as key 2024-07-23 17:23:22 +05:30
Kovid Goyal
e4433eefc7 Also allow using other image formats for window_logo_path 2024-07-23 15:29:19 +05:30
Kovid Goyal
15d77c648d Speed up loading of background image
Use a persistent cache of RGBA data. Also as a free bonus, support more
image formats for the background image.
2024-07-23 15:10:54 +05:30
Kovid Goyal
a0dc062032 Fix render cache not being used 2024-07-23 15:07:41 +05:30
Kovid Goyal
7e7050d30e DRYer 2024-07-23 13:53:02 +05:30
Kovid Goyal
cb84f56ef8 Insist on specifying an output format 2024-07-23 13:47:36 +05:30
Kovid Goyal
8426091169 Dont leak file handle if locking fails 2024-07-23 13:39:54 +05:30
Kovid Goyal
8201f0dd0e Move caching implementation to Python
Less code, more performant since the cache is used from Python.
And we can make the Go code a pure image format conversion filter.
2024-07-23 13:37:53 +05:30
Kovid Goyal
eaf71d1ccf Allow specifying permissions when creating anonymous temp files 2024-07-23 07:28:10 +05:30
Kovid Goyal
4c0ead129e Support older python 2024-07-23 06:23:48 +05:30
Kovid Goyal
d08dcd92c7 Python wrapper to use image to RGBA Go code 2024-07-22 22:39:12 +05:30
Kovid Goyal
fb20c4acb6 Code to convert image at path into cached RGBA data 2024-07-22 21:39:38 +05:30
Kovid Goyal
1b6f74da65 fsync before rename for atomic write 2024-07-22 20:04:13 +05:30
Kovid Goyal
c906314974 change the atomic write functions to work with readers 2024-07-22 15:01:19 +05:30
Kovid Goyal
d31c48092a Move function used only in one place to that place 2024-07-22 13:42:59 +05:30
Kovid Goyal
b6ca501111 Document the new color control protocol 2024-07-22 13:24:25 +05:30
Kovid Goyal
879effc6f5 Allow querying background opacity via XTGETTCAP 2024-07-22 11:31:34 +05:30
Kovid Goyal
deff40df8a New OSC 21 protocol for color control
Needs to be specced up
2024-07-22 10:57:13 +05:30
Kovid Goyal
a927e1e4f4 ... 2024-07-22 07:08:01 +05:30
Kovid Goyal
e97de84668 Convenience method to get the mouse position for a window
Fix #7652
2024-07-21 22:18:43 +05:30
Kovid Goyal
ac4bfd977a ... 2024-07-21 20:39:52 +05:30
Kovid Goyal
a0392946e5 Make mypy happy 2024-07-21 20:29:19 +05:30
Kovid Goyal
0cf9a79760 A new option second_transparent_bg
Makes a second background color semi-transparent via background_opacity.
Useful for things like cursor line highlight in editors.

Fixes #7646
2024-07-21 20:22:31 +05:30
Kovid Goyal
573058d861 Fix panic on empty style 2024-07-21 18:41:04 +05:30
Kovid Goyal
be772caeaf DRYer 2024-07-21 10:46:32 +05:30
Kovid Goyal
ff2baf9122 mouse demo redraw screen on window resize 2024-07-20 17:05:30 +05:30
Kovid Goyal
9c9041cf57 Dont need to reset inband resize since it is saved and restored on the private setting stack 2024-07-20 17:02:08 +05:30
Kovid Goyal
25c63bf2e1 Dont return a valid weight range if a family contains only a single weight 2024-07-20 14:21:30 +05:30
Kovid Goyal
33131ff5eb ... 2024-07-20 14:06:39 +05:30
Kovid Goyal
4db3978a91 Add a note on how to see monospaced fonts on macOS 2024-07-20 13:55:34 +05:30
Kovid Goyal
5ab484cac2 Implement --bias for the grid layout 2024-07-20 13:11:06 +05:30
Kovid Goyal
92385f6db7 Make function re-useable and simplify bias docs a bit 2024-07-20 12:44:46 +05:30
Kovid Goyal
681048f1ca launch command: A new --bias option to adjust the size of newly created windows declaratively
Still need to implement it for the Grid layout.
Fixes #7634
2024-07-20 12:37:18 +05:30
Kovid Goyal
ae8da889c4 Make mypy 1.11 happy 2024-07-20 10:15:01 +05:30
Kovid Goyal
681a2b7b28 Sessions: A new command focus_matching_window to shift focus to a specific window, useful when creating complex layouts with splits 2024-07-19 14:54:44 +05:30
Kovid Goyal
95aeaa390f ... 2024-07-19 12:05:52 +05:30
Kovid Goyal
e15e882d10 DRYer 2024-07-19 11:47:24 +05:30