Kovid Goyal
ce94a9b2df
More typing work
2020-03-11 09:35:59 +05:30
Kovid Goyal
bfbb3c7068
Merge branch 'zsh_compdef_comment' of https://github.com/Luflosi/kitty
2020-03-11 07:17:47 +05:30
Luflosi
6d1fd20542
Add #compdef comment to zsh completion
...
This will allow adding completions without using `kitty + complete setup zsh | source /dev/stdin` by piping the code into a file named `_kitty` in a directory in `$fpath` instead of piping to `source`. This is especially handy for package managers that package kitty.
See https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org .
The `compdef _kitty kitty` line at the end doesn't seem to have any ill effects when using the completion code in a completion function file. When piping the code to `source` like before, the added line should be interpreted as a comment and be ignored.
2020-03-10 20:48:43 +01:00
Kovid Goyal
bb8cab3a02
Add type information for tui operations cmds
2020-03-10 22:25:57 +05:30
Kovid Goyal
10435c23c2
more typing work
2020-03-10 20:25:09 +05:30
Kovid Goyal
01142cdc8c
Add type information to the Graphics Command infrastructure
2020-03-10 20:14:04 +05:30
Kovid Goyal
fc0adfd965
more typing work
2020-03-10 15:48:51 +05:30
Kovid Goyal
8803eeb890
more typing work
2020-03-10 12:58:53 +05:30
Kovid Goyal
25be705bcf
DRYer
2020-03-09 21:19:17 +05:30
Kovid Goyal
d8f214a267
oops
2020-03-09 21:11:21 +05:30
Kovid Goyal
f74fb846e5
Fix #2421
2020-03-09 21:10:04 +05:30
Kovid Goyal
8ae110691e
More typing work
2020-03-09 21:06:13 +05:30
Kovid Goyal
abff2292c1
Workaround for sphinx type info being available magically on the CI server
2020-03-09 18:37:23 +05:30
Kovid Goyal
7d690bbad2
Run mypy on CI
2020-03-09 18:24:55 +05:30
Kovid Goyal
7298de646a
more typing work
2020-03-09 18:17:24 +05:30
Kovid Goyal
3c2f3ecd8e
Fix #2420
2020-03-09 17:24:51 +05:30
Kovid Goyal
ac2c21e046
more typing work
2020-03-09 16:13:00 +05:30
Kovid Goyal
c817ba9eae
more typing work
2020-03-09 13:32:45 +05:30
Kovid Goyal
92827ae647
More typing work
2020-03-09 09:56:37 +05:30
Kovid Goyal
5bdb405635
More typing work
2020-03-09 08:56:02 +05:30
Kovid Goyal
9beae321d7
More typing work
2020-03-08 22:08:18 +05:30
Kovid Goyal
353db678a2
Add typing to box_drawing
2020-03-08 21:30:50 +05:30
Kovid Goyal
9b973ef99c
More typing work
2020-03-08 20:36:50 +05:30
Kovid Goyal
308d171dae
More typing work
2020-03-08 18:55:30 +05:30
Kovid Goyal
7057bc663e
Implement proper editor integration for mypy
2020-03-08 14:39:46 +05:30
Kovid Goyal
d84cff0baf
The hints kitten should by default use the URL prefixes from kitty.conf
2020-03-08 13:26:55 +05:30
Kovid Goyal
645890ccc8
Make the set of URL prefixes that are recognized while hovering with the mouse configurable
...
Fixes #2416
2020-03-08 13:16:34 +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
9b32f18109
Refactor remote control commands into individual modules
...
Also add type information
2020-03-08 08:39:26 +05:30
Kovid Goyal
a0321376d5
Fix `@selection` placeholder not working with launch command
...
Fixes #2417
2020-03-08 08:00:36 +05:30
Kovid Goyal
0a6e264d09
Fix #2414
2020-03-07 15:15:27 +05:30
Kovid Goyal
afec07b124
More typing work
2020-03-06 14:19:46 +05:30
Kovid Goyal
8a34fede55
More typing work
2020-03-06 08:35:23 +05:30
Kovid Goyal
686b5f297e
Ensure glfw is imported from the correct place
2020-03-06 08:23:01 +05:30
Kovid Goyal
6609d219f4
Add type checking for glfw module as well
2020-03-06 07:59:55 +05:30
Kovid Goyal
804998ca69
oops
2020-03-06 07:55:54 +05:30
Kovid Goyal
de5254469c
Fix #2412
2020-03-06 07:48:41 +05:30
Kovid Goyal
ef879bab9c
Fix #2411
2020-03-06 07:19:33 +05:30
Kovid Goyal
f729985346
More typing work
...
Also move notification_activated into a standalone function which will
hopefully fix #2410
2020-03-06 07:07:18 +05:30
Kovid Goyal
1e998b6a3f
Use mypy in daemon mode
2020-03-05 20:38:51 +05:30
Kovid Goyal
77e9460eea
Make mypy a bit stricter
2020-03-05 19:57:28 +05:30
Kovid Goyal
81a58186c6
Drop support for python 3.5
2020-03-05 18:31:20 +05:30
Kovid Goyal
ac149be2bb
py3.5 compat
2020-03-05 18:23:45 +05:30
Kovid Goyal
a76a163db5
kitty.config is typed
2020-03-05 18:17:21 +05:30
Kovid Goyal
4ae59d3f77
The launch module is now fully typed
2020-03-05 16:20:56 +05:30
Kovid Goyal
d83a450260
A command for test.py to generate the typing stubs and run mypy
2020-03-05 15:58:30 +05:30
Kovid Goyal
61acc0784e
Dont store generated stubs in source control
2020-03-05 15:50:54 +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
Kovid Goyal
ec8c96b8e6
diff kitten: Highlight pyi files as python
2020-03-04 11:52:58 +05:30