Commit Graph

14692 Commits

Author SHA1 Message Date
Kovid Goyal
68b6db4b61 Bump minimum python version to 3.9
3.8 is almost EOL will be in a month or so
2024-07-27 00:07:17 +05:30
Kovid Goyal
8ba4e36ea4 DRYer 2024-07-27 00:06:59 +05:30
Kovid Goyal
c18098d872 Cleanup DBUS send notification API 2024-07-26 23:57:36 +05:30
Kovid Goyal
2c90baf0b6 Get icon names working on linux 2024-07-26 23:57:36 +05:30
Kovid Goyal
a473738001 Add tests for handling of icon metadata 2024-07-26 23:57:36 +05:30
Kovid Goyal
9de4b7bc78 Dont alloc the stream decode buffer on object init 2024-07-26 23:57:36 +05:30
Kovid Goyal
3d0747e713 Switch to SIMD accelerated base64 decoding for clipboard and notification requests 2024-07-26 23:57:33 +05:30
Kovid Goyal
ea112a6592 Start work on adding icon support to desktop notifications 2024-07-26 22:46:21 +05:30
Kovid Goyal
a50bf2c6bb move code into separate function for legibility 2024-07-26 22:43:13 +05:30
Kovid Goyal
bb3aecd2a5 kitten run-shell: Automatically add the directory containing the kitten binary to PATH if needed
Controlled via the --inject-self-onto-path option
2024-07-26 22:29:05 +05:30
Kovid Goyal
5df0dd0959 Add type definition for DiskCache 2024-07-25 20:22:11 +05:30
Kovid Goyal
0813a3daff Report if close events are supported in the query response 2024-07-25 18:59:31 +05:30
Kovid Goyal
9c772915fb Pass through dismissed events even though apple never generates them 2024-07-25 18:41:10 +05:30
Kovid Goyal
3b2b7d9be5 DRYer 2024-07-25 18:40:25 +05:30
Kovid Goyal
9024341b1f Get closing of notifications working on macOS 2024-07-25 16:35:32 +05:30
Kovid Goyal
3593e8d78d Make the default for update-on-ox fast and useful 2024-07-25 16:28:14 +05:30
Kovid Goyal
7e610eb645 Get closing of notifications working on Linux
Also implement support for the ActivationToken signal
so that OS Windows are focused on Wayland when clicking
on a notification.
2024-07-25 12:22:58 +05:30
Kovid Goyal
f66a58ebe2 Decouple notification closed reporting from closing of notifications 2024-07-25 10:53:31 +05:30
Kovid Goyal
1c9d9e394c Have close notifications indicate when notification is not found 2024-07-25 07:58:17 +05:30
Kovid Goyal
095e1917c1 Port the tests 2024-07-25 07:39:29 +05:30
Kovid Goyal
7dc30c7897 Nicer system for custom actions on notification callback 2024-07-25 06:45:10 +05:30
Kovid Goyal
d68e49fe64 Start work on refactoring notifications handling
Makes the code cleaner and easily mockable for testing.
Also, add code to handle closing notifications on Linux.
2024-07-25 06:45:10 +05:30
Kovid Goyal
31cee3e966 Merge branch 'master' of https://github.com/evelynharthbrooke/kitty 2024-07-25 06:43:42 +05:30
Evelyn Harthbrooke
7b58560663 typo: remove unnecessary word in desktop notifications document 2024-07-24 17:26:40 -06:00
Kovid Goyal
47f2c804de Make github code scanner happy 2024-07-24 06:52:41 +05:30
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