194 Commits

Author SHA1 Message Date
Kovid Goyal
0db9b882fe Cleanup previous PR 2025-03-19 21:25:02 +05:30
arne314
40ef6b4f37 config: number with unit for min contrast ratio 2025-03-14 14:05:34 +01:00
Kovid Goyal
fb54f1527f Update type signatures generated by gen/config.py 2025-02-11 22:22:57 +05:30
Kovid Goyal
d22c8f5878 Nicer reporting of errors when using geninclude 2025-02-05 16:24:38 +05:30
Kovid Goyal
da1626090a Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
Kovid Goyal
d7207edf2b DRYer 2025-01-07 11:54:06 +05:30
Kovid Goyal
69aead6d3d query_terminal: Add support for reporting name of the OS the terminal emulator is running on
Fixes #8201
2025-01-07 08:21:53 +05:30
Kovid Goyal
1eeea70c7a Allow dynamically generating configuration by running an arbitrary program using the new geninclude directive 2025-01-06 19:00:01 +05:30
Kovid Goyal
76ebc591db Make the effective configuration file for the kitty process available in the cache directory
This can be parsed by kittens to load effective settings, thereby making
things like --override and reloading of config also affect kittens that
read kitty config. Still to be implemented on the kitten side.
2025-01-05 15:28:30 +05:30
roshal
4d88e9938c update 2025-01-03 07:26:33 +03:00
roshal
855fd0241c update 2025-01-03 05:59:42 +03:00
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
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
3c4f2aa1b8 shlex.split -> shlex_split 2023-12-02 15:17:08 +05:30
Kovid Goyal
5fe77e38b7 ... 2023-11-13 01:10:38 +05:30
Kovid Goyal
9a08489112 Fix config file reloading not working is a system config file is set and no user config file is present at startup
Fixes #6801
2023-11-13 01:02:02 +05:30
Kovid Goyal
77292a16d6 Make shebangs consistent
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.

Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
9375e671bc dedup choice literals 2023-10-15 10:10:05 +05:30
Kovid Goyal
0e11174aa5 We require python 3.8 so no need to guard typing.Literal 2023-10-15 09:58:19 +05:30
Kovid Goyal
4ffb22199b Cleanup previous PR 2023-09-03 18:59:37 +05:30
Jake Stewart
f0e9311cc4 conform to style guide 2023-09-03 17:15:26 +08:00
Jake Stewart
2113a22f11 add line break syntax to python config parser 2023-09-03 16:37:34 +08:00
Kovid Goyal
53073f34d7 Cleanup previous PR 2023-05-24 13:31:29 +05:30
Kovid Goyal
40ca46d8d8 Fix default generation for nullable colors 2023-03-28 08:09:37 +05:30
Kovid Goyal
5329546f21 Implement parsing of map 2023-03-27 07:53:54 +05:30
Kovid Goyal
e2fda5d1c4 ... 2023-03-15 15:32:04 +05:30
Kovid Goyal
da38cb3254 Add support for more option types to Go conf file parsing 2023-03-15 15:17:38 +05:30
Kovid Goyal
d98504e1a6 Finish porting SSH config file parsing 2023-02-26 08:01:02 +05:30
Kovid Goyal
7b4738125b Move config code into its own package 2023-02-26 08:01:02 +05:30
Kovid Goyal
747411be00 Finish implementation of config file parsing
Still needs tests
2023-02-26 08:01:01 +05:30
Kovid Goyal
32aa580984 Store parsed multi option values on the config object 2023-02-26 08:01:01 +05:30
Kovid Goyal
1470b11024 Dont parse default values 2023-02-26 08:01:01 +05:30
Kovid Goyal
5822bb23f0 Work on porting config file parsing to Go 2023-02-26 08:01:01 +05:30
Kovid Goyal
d550aef792 Fix #6056 2023-02-25 08:49:49 +05:30
Kovid Goyal
836b652f4d Enable checks for unused noqa 2023-01-09 17:28:35 +05:30
Kovid Goyal
6e41409a3f Dont run isort on generated conf files 2023-01-09 16:51:59 +05:30
Kovid Goyal
7fe5d7b58f Replace isort with ruff 2023-01-09 16:47:42 +05:30
pagedown
30b25709d2 Fix the base path for envinclude 2022-12-05 14:53:26 +08:00
pagedown
9c488bb877 Docs: Remove extra backslashes from commented config
Update docs to use \e in the example.
2022-12-05 14:27:40 +08:00
Kovid Goyal
d7d96c2e7b When using the include directive in kitty.conf make the environment variable KITTY_OS available for OS specific config 2022-12-04 21:03:24 +05:30
Kovid Goyal
38547c9e7a Documentation: distinguish between examples and default values for multi-valued options 2022-11-17 17:20:40 +05:30
Yuxin Wu
c0d80f9a47 [docs]: don't show config codeblocks that only has a name 2022-11-17 00:05:50 -08:00
Kovid Goyal
555020cfd5 Also allow using at-cmd 2022-08-28 10:26:38 +05:30
Kovid Goyal
391e2b8488 Fix resolution of anchor names for kitty @ command docs 2022-08-28 10:25:00 +05:30
Kovid Goyal
d595084395 DRYer 2022-08-24 15:02:36 +05:30
Kovid Goyal
b32ee5ee46 Forgot to change code to remove markup for github links 2022-08-24 15:00:39 +05:30
Kovid Goyal
214416f1e3 Fix handling of :doc: in CLI help output 2022-08-24 13:43:47 +05:30
pagedown
fd4a682c5b Fix doc website URL with duplicate slashes 2022-08-24 13:29:51 +08:00
pagedown
c437a36794 Fix GitHub links in commented configuration
Hyperlink GitHub related text roles: iss, pull, disc
2022-08-24 13:27:12 +08:00
Kovid Goyal
10fdde6647 Hyperlink :envvar: as well 2022-08-20 16:24:46 +05:30