Kovid Goyal
da1626090a
Update codebase to Python 3.10 using pyupgrade
2025-02-03 10:56:50 +05:30
Kovid Goyal
f1d0d0949b
Run pyupgrade to update the codebase to python 3.9
...
Gets rid of a lot of typing ugliness by using type annotations on
builtin types
2024-07-31 07:55:27 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
a068e3e655
Fix issues reported by ruff
2023-01-09 15:54:41 +05:30
pagedown
98e44a8907
Unify resolution of absolute paths or config dir paths
2021-12-09 20:43:07 +08:00
Kovid Goyal
60472fcee3
Add more type annotations
2021-10-27 14:00:29 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
9432f86e43
Remove no longer needed type: ignore
...
Looks like the type signature for runpy.run_path has finally been fixed
2021-06-09 08:30:22 +05:30
Kovid Goyal
714d64c417
Get type checking working with mypy 0.80
...
Add workaround for https://github.com/python/typeshed/issues/4964
2021-01-23 09:25:31 +05:30
Kovid Goyal
09fbd6f5e0
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-18 09:59:31 +05:30
Andrew Hlynskyi
474bef65cb
Fixed marks grouping and coloring for simultaneous multi marks definition
2020-05-18 06:53:56 +03:00
Kovid Goyal
d3f37eeba4
more typing work
2020-03-14 11:42:05 +05:30
Kovid Goyal
c817ba9eae
more typing work
2020-03-09 13:32:45 +05:30
Michael F. Schönitzer
1d71791b3c
Bugfix exception when executing marker functions
...
Fixes the exception below that happened for function-markers:
```
Traceback (most recent call last):
File "/usr/bin/../lib/kitty/kitty/boss.py", line 540, in dispatch_special_key
return self.dispatch_action(key_action)
File "/usr/bin/../lib/kitty/kitty/boss.py", line 612, in dispatch_action
passthrough = f(*key_action.args)
File "/usr/bin/../lib/kitty/kitty/window.py", line 615, in toggle_marker
self.screen.set_marker(marker_from_spec(ftype, spec, flags))
File "/usr/bin/../lib/kitty/kitty/marks.py", line 92, in marker_from_spec
return marker_from_function(runpy.run_path(path, run_name='__marker__').marker)
```
2020-02-08 19:28:53 +01:00
Kovid Goyal
4f135be86c
Allow creating markers dynamically
2020-01-13 20:05:50 +05:30
Kovid Goyal
35fb702833
Use only a single marker function
...
Multipe colors/expressions can instead be combined at definition time
2020-01-13 11:57:19 +05:30
Kovid Goyal
d63ea11cac
Marking now works
2020-01-13 06:50:37 +05:30
Kovid Goyal
d32a05925f
Code to add and remove markers using maps
2020-01-13 06:50:36 +05:30
Kovid Goyal
04006ea81e
Wrapper functions to handle passing matching values to C code
2020-01-13 06:50:36 +05:30