Commit Graph

1132 Commits

Author SHA1 Message Date
Kovid Goyal
002d0a0403 Preserve trailing blank line on resize always
No sense in restricting it to just lines marked as output and only on
main screen.
2024-10-19 14:15:45 +05:30
Kovid Goyal
66251f8fd5 Add test for previous bugfix
main screen should have trailing output line preserved when resized on alt screen
2024-10-19 14:02:06 +05:30
Kovid Goyal
b66d9332f9 ... 2024-10-19 10:51:18 +05:30
Kovid Goyal
70d72b22d8 Graphics protocol: Clear any partially uploaded data for a chunked load when any delete command is received
Fixes #7968
2024-10-13 09:49:44 +05:30
Ihar Hrachyshka
927c8ff4d8 tests: apply os.utime to created symlinks too
Nanosecond precision is not universally available on all platforms. For
example, nixpkgs python is built using Apple SDK 10.12 that does not
have `utimensat`. Because of that, python `os.stat` falls back to
microsecond precision.

This patch applies `os.utime` with zeroed nanoseconds to symlinks
created by the test case, the same way as it is already applied to other
files tested for transfer.
2024-10-03 23:09:28 -04:00
Kovid Goyal
c3130419a7 Implement dynamic control of transparent background colors via escape code
Still have to implement it via remote control
2024-09-24 19:02:13 +05:30
Kovid Goyal
481153318b Fix a regression that broke writing to the clipboard using the OSC 5522 protocol
Fixes #7858
2024-09-15 08:42:50 +05:30
Kovid Goyal
913ce58fe3 Make shlex_split always return a token
Matches behavior of split() so is therefore more intuitive
2024-09-02 17:30:18 +05:30
Kovid Goyal
0c1d239b5f Exclude bypy/b from go test discovery 2024-08-23 11:27:54 +05:30
Kovid Goyal
b872bbff49 Get it building in a rootless container 2024-08-12 19:24:48 +05:30
Kovid Goyal
2b3f2258ff More pyugrade to 3.9 2024-08-05 11:00:51 +05:30
Kovid Goyal
2c743dcdb2 Update sound support in desktop notifications spec
Add a short list of standard sound names.
2024-08-04 20:20:41 +05:30
Kovid Goyal
bd8162fa42 Add support for controlling the sound played with notifications 2024-08-03 13:46:38 +05:30
Kovid Goyal
adc9a61e2c Add tests for id sanitization 2024-07-31 16:57:57 +05:30
Kovid Goyal
1f656eccbb Fix tests for buttons functionality 2024-07-31 15:21:57 +05:30
Kovid Goyal
212d7accfc Allow multiple types per notification 2024-07-29 20:52:54 +05:30
Kovid Goyal
4ba9fcaf37 Simplify streaming base64 decoder by using the streaming API of libbase64 2024-07-29 20:08:28 +05:30
Kovid Goyal
eb1bb493a7 Ensure icon cache is cleared at exit 2024-07-29 15:24:18 +05:30
Kovid Goyal
ad48ecad40 Implement handling of icon names on Linux 2024-07-29 14:39:20 +05:30
Kovid Goyal
6e35289f8e Allow sending icon data without an identifier 2024-07-29 10:41:05 +05:30
Kovid Goyal
eca487d15f Add support for auto-expiring notifications 2024-07-28 20:14:39 +05:30
Kovid Goyal
d1a8772ac8 Add tests for alive queries 2024-07-28 17:27:09 +05:30
Kovid Goyal
083f158bbd Implement a polling mode for close events 2024-07-28 15:35:22 +05:30
Kovid Goyal
2bffea2bdc Implement updating of notifications 2024-07-28 12:25:35 +05:30
Kovid Goyal
59c175f312 Add test for filtering 2024-07-28 09:15:18 +05:30
Kovid Goyal
c59ab759a1 Allow well behaved applications to categorise notifications so that users can easily filter them out 2024-07-27 21:54:19 +05:30
Kovid Goyal
a473738001 Add tests for handling of icon metadata 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
0813a3daff Report if close events are supported in the query response 2024-07-25 18:59:31 +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
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
7741799f78 Start work on implementing closing of notifications 2024-07-23 22:05:05 +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
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
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
a0dc062032 Fix render cache not being used 2024-07-23 15:07:41 +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
d08dcd92c7 Python wrapper to use image to RGBA Go code 2024-07-22 22:39:12 +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
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
21e19a90f4 Add test for multiple function handling 2024-07-18 22:25:02 +05:30
Kovid Goyal
9c75ea795d Recognize more linear bezier curves 2024-07-18 22:25:02 +05:30
Kovid Goyal
39dfa75fe7 Add test for steps easing function value calculation 2024-07-18 22:25:02 +05:30
Kovid Goyal
e927f8da62 Add some tests for easing function parsing 2024-07-18 22:25:02 +05:30
Kovid Goyal
a4cdc1cdf3 Send current size when in band resize events requested even if mode is already on 2024-07-18 20:40:05 +05:30