Kovid Goyal
e74188fcf0
Switch to using ps to get all processes
...
The Go process module is very slow to get Exe() on non-Linux systems
without CGO as it works by calling lsof on the pid. So we anyway have to
filter by command line first. So might as well just use ps in that case.
2024-08-19 20:54:54 +05:30
Kovid Goyal
9708959438
When reloading in all kitty instances, only use readlink on processes that contain "kitty" in the image name
...
Apparently there are some machines where a few hundred/thousand readlink calls
take 30 seconds! See #7744
2024-08-19 19:18:37 +05:30
Kovid Goyal
c906314974
change the atomic write functions to work with readers
2024-07-22 15:01:19 +05:30
Kovid Goyal
da9a36d918
Fix reload of kitty config not working if kitty launched via symlink not named kitty
2024-07-04 19:07:15 +05:30
Kovid Goyal
f15eebec02
Refactor config patching code to make it re-useable
2024-06-24 07:54:17 +05:30
Kovid Goyal
882d471c90
Make config line parsing in Go use same algorithm as in python
2023-11-22 10:01:45 +05:30
Kovid Goyal
fc64ef41b3
when parsing conf files in go accept both space and tab as key separators
2023-11-22 09:49:33 +05:30
Kovid Goyal
4ffb22199b
Cleanup previous PR
2023-09-03 18:59:37 +05:30
Jake Stewart
0aa4c850ba
add line break syntax to go config parser
2023-09-03 16:39:13 +08:00
Kovid Goyal
7803b07e7f
Ignore leading and trailing space around values when parsing config lines
2023-04-06 10:45:34 +05:30
Kovid Goyal
14b58ba015
Fix overrides not being parsed correctly
2023-03-27 07:53:56 +05:30
Kovid Goyal
d208670172
Abstract typical config file loading with path and cli overrides
2023-03-27 07:53:54 +05:30
Kovid Goyal
5329546f21
Implement parsing of map
2023-03-27 07:53:54 +05:30
Kovid Goyal
f42090766a
Use the new string scanner everywhere
2023-03-08 13:31:27 +05:30
Kovid Goyal
7ce64fcde0
Support include when loading themes from dirs
2023-02-26 21:16:29 +05:30
Kovid Goyal
7b4738125b
Move config code into its own package
2023-02-26 08:01:02 +05:30