Kovid Goyal
e64b1ba67c
Start work on remote control passwords
2022-08-10 12:36:04 +05:30
Andrew Marshall
90477825c2
Make globinclude sort files before loading
...
`Path.glob` gives no guarantee about the order results are returned in.
This means that if files included by `globinclude` override each other,
the resulting config was non-deterministic. Resolve this by sorting the
results from `glob` to give consistent, well-defined order.
2022-06-17 18:50:16 -04:00
Kovid Goyal
ffa79d731c
Allow configuring the ssh kitten via env vars
2022-03-05 12:29:55 +05:30
Kovid Goyal
262ba0197d
Allow using - as a synonym for /dev/stdin when reading the config
2022-03-05 08:07:32 +05:30
Kovid Goyal
53c8485a7a
Get env conf working with tests
2022-03-03 21:24:44 +05:30
Kovid Goyal
ad91f5af53
...
2022-03-03 21:24:44 +05:30
pagedown
dc61adf9d8
Refactor: More f-string
2022-01-28 19:34:13 +08:00
Kovid Goyal
6a2522452f
Allow including config files matching glob patterns in conf files
...
Fixes #4533
2022-01-18 16:28:19 +05:30
Kovid Goyal
1454af2d41
macOS: Allow customizing the launch actions
2022-01-07 18:43:07 +05:30
Kovid Goyal
a97a05b1ec
Allow action_alias to work with any action
2021-11-23 14:43:36 +05:30
Kovid Goyal
9161c71b51
Show the user an error message when pressing a key results in an exception
2021-11-22 23:01:44 +05:30
Kovid Goyal
2443dc135c
Use a faster implementation of the Color type
...
Now implemented in C
2021-10-28 11:15:13 +05:30
Kovid Goyal
a26f041964
Add more type annotations
2021-10-27 12:31:10 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
86a8b231f4
...
2021-07-04 07:15:15 +05:30
Kovid Goyal
331675d413
Fix ResourceWarning
2021-06-28 20:40:10 +05:30
Kovid Goyal
a1b87f445b
Store the paths from which config data is read on the created options object
2021-06-05 12:55:00 +05:30
Kovid Goyal
6d7df1c5e8
Refactor configuration file parsing
...
Now the time for importing the kitty.config module has been halved, from
16ms from 32ms on my machine. Also, the new architecture will eventually
allow for auto generating a bunch of python-to-C boilerplate code.
2021-05-31 17:40:49 +05:30
Kovid Goyal
49c4b20113
Report bad choice values when parsing config
2021-05-31 17:40:48 +05:30
Kovid Goyal
fe94f4cbb4
Move type parsers for config into own module
2021-05-24 22:29:28 +05:30
Kovid Goyal
3b1d534f6d
The parser doesnt need the full defaults object
2021-05-24 14:01:50 +05:30
Kovid Goyal
c1777b1098
DRYer
2021-05-24 13:42:51 +05:30
Kovid Goyal
32f6f18527
DRYer
2021-05-23 11:22:29 +05:30
Kovid Goyal
9114bda24c
Get the new bypy based freezing process working with linux builds
2021-02-17 15:50:53 +05:30
Kovid Goyal
9cf5348c36
Modify ImageMagick wrapper to handle animated images
2021-02-01 14:12:26 +05:30
Kovid Goyal
027c5a57f1
Work on porting kittens to use new key infrastructure
...
Also move type definitions into their own module
2021-01-16 20:52:14 +05:30
Kovid Goyal
be1ff61e4a
Improve some utility functions
...
Make expandvars accept both $VARNAME and ${VARNAME} now matches
the behavior of posixpath.expandvars
Allow overriding the environment variables to_cmdline expands against
2020-09-18 13:25:59 +05:30
Kovid Goyal
c92aca5d19
Use a Literal as the type for choice based options
2020-04-24 19:45:51 +05:30
Kovid Goyal
5f06d3a427
Disallow untyped decorators
2020-03-14 14:50:04 +05:30
Kovid Goyal
2ebdf738ca
more typing work
2020-03-11 20:08:16 +05:30
Kovid Goyal
8ae110691e
More typing work
2020-03-09 21:06:13 +05:30
Kovid Goyal
308d171dae
More typing work
2020-03-08 18:55:30 +05:30
Kovid Goyal
cc1336a616
More typing work
...
Also use a mypy based linter when editing
2020-03-08 11:02:14 +05:30
Kovid Goyal
77e9460eea
Make mypy a bit stricter
2020-03-05 19:57:28 +05:30
Kovid Goyal
f05890719d
Add type checking for the various CLI options objects
2020-03-05 15:47:12 +05:30
Kovid Goyal
0f4e7921ee
Create an auto-generated stub file for the kitty Options object
2020-03-04 19:14:50 +05:30
Luflosi
527ff0238a
Replace all instances of EnvironmentError with OSError
...
According to the text just above https://docs.python.org/3/library/exceptions.html#EnvironmentError , `EnvironmentError` has been an alias of `OSError` since Python 3.3. Replacing it makes the code more consistent since `OSError` is used in other places in the code too.
2020-01-11 16:47:36 +01:00
Luflosi
5f855ce547
Use context managers to open files
...
Inspired by d50a6ddc1b .
2019-08-01 13:21:26 -05:00
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
c660840c19
When encountering errors in kitty.conf report them to the user instead of failing to start.
2019-04-28 20:53:59 +05:30
Kovid Goyal
5953c2097d
Expand env vars throughout command lines
...
When converting strings to command lines interpret env vars in all the
parts of the command line not just the first item. Fixes #1535
2019-04-13 13:53:32 +05:30
Kovid Goyal
b6724ed177
...
2019-03-24 10:06:18 +05:30
Kovid Goyal
fcedc9f5c3
Allow setting :opt:active_border_color to `none` to not draw a border around the active window
...
Fixes #805
Fixes #1491
2019-03-24 10:04:32 +05:30
Luflosi
ed62e72a98
Warn when a line in the config file is invalid
2019-03-14 18:46:36 +01:00
Luflosi
a28710c1fc
Minor refactor
2019-03-14 18:46:36 +01:00
Kovid Goyal
b49b34c4c1
Micro-optimization
2019-02-14 15:41:29 +05:30
Kovid Goyal
1d275c6b35
Only import the ast module on demand
2018-08-27 12:43:20 +05:30
Kovid Goyal
568a4c9b5d
Re-raise KeyError idiomatically
2018-06-29 13:49:08 +05:30
Marcus Albertsson
12975347ee
Fix: Exception in conf utils
...
The bug was related to trying to split a string with unstript spaces in
the action parameter. It resulted in a unbound error as there was no
previous raise when getting the key from args_funcs. The fix is twofold,
it makes sure that we raise the keyerror if we're trying to grab a non
existing key and we're stripping the spaces from the action before
splitting.
This should fix both the unbound error and the not being able to resolve
correct actions.
2018-06-29 08:56:25 +01:00
Kovid Goyal
53ae5a4f8d
A new tab bar style
2018-06-06 13:27:15 +05:30