Commit graph

14347 commits

Author SHA1 Message Date
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
Kovid Goyal
43769bc3e0
Allow controlling the easing curves used for the visual bell 2024-07-19 11:35:00 +05:30
Kovid Goyal
3cf07e27a1
... 2024-07-19 09:25:12 +05:30
Kovid Goyal
705df117fd
Add a note about cursor blink animation energy consumption 2024-07-19 09:23:34 +05:30
Kovid Goyal
3ff7eb68f8
Document how to animate the cursor blinking 2024-07-19 09:09:13 +05:30
Kovid Goyal
942cbea4b5
Fix rendering of semi-transparent cursors 2024-07-19 08:58:24 +05:30
Kovid Goyal
3db2ce33b1
Handle bezier easing function returning negative values 2024-07-19 08:27:58 +05:30
Kovid Goyal
e1730b4c84
Use more comprehensive linear test for bezier curves 2024-07-18 22:25:02 +05:30
Kovid Goyal
40770f908b
... 2024-07-18 22:25:02 +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
fc13b06b35
Implement proper unit bezier easing function
Code based on WebKit
https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/graphics/UnitBezier.h
2024-07-18 22:25:02 +05:30
Kovid Goyal
f090c9a895
Code to convert easing functions from Python to C 2024-07-18 22:25:02 +05:30
Kovid Goyal
9ac81c45b1
Cleanup steps animation function definition 2024-07-18 22:25:02 +05:30
Kovid Goyal
0a707b5c33
Move work on animation implementation 2024-07-18 22:25:02 +05:30
Kovid Goyal
cd320e05c1
Implement simple easing curves 2024-07-18 22:25:02 +05:30
Kovid Goyal
eb7487d7a2
Prepare of alpha blending of cursor
Will allow for cursor blink animation eventually.
2024-07-18 22:25:02 +05:30
Kovid Goyal
10bd0f71d8
Use inband resize events in kittens 2024-07-18 21:57:53 +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