132 Commits

Author SHA1 Message Date
Kovid Goyal
55aa9e11db
Dont use globals for role mapping 2021-07-27 08:39:04 +05:30
Kovid Goyal
bc895eacc5
Also prevent unknown roles from causing formatting to error 2021-07-27 08:07:11 +05:30
Kovid Goyal
6c8eb4a19a
Fix #3869 2021-07-27 08:05:55 +05:30
Kovid Goyal
624991b9b7
Use the builtin envvar role for env vars
Also fix some broken links
2021-07-20 13:29:39 +05:30
Kovid Goyal
4a71afaf96
Get rid of --debug-config
Instead have a keybind that shows the configuration used
by the currently running kitty instance
2021-06-05 14:27:24 +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
dd5715ce79
Rename parsing placeholders for actions 2021-05-31 17:40:48 +05:30
Kovid Goyal
5470dd74bd
Move options code into its own directory 2021-05-31 17:40:48 +05:30
Kovid Goyal
6c344d4ae2
Move the action parsing code into options_types 2021-05-31 17:40:47 +05:30
Kovid Goyal
e089e9c121
Clarify what --debug-config does 2021-05-13 20:19:34 +05:30
Kovid Goyal
a75140c6d7
Add a --working-directory alias for --directory as this is commonly used in many terminal emulators 2021-05-13 16:13:46 +05:30
Kovid Goyal
f4ab6542fa
... 2021-05-11 10:24:48 +05:30
Kovid Goyal
dfbe1bd234
Add debug prints for mouse events 2021-05-11 10:22:30 +05:30
Kovid Goyal
417c81de60
Implement parsing for mouse_map config 2021-05-10 07:16:43 +05:30
Kovid Goyal
4c644b8556
Add NumLock and CapsLock reporting to the keyboard protocol 2021-04-13 07:10:00 +05:30
Kovid Goyal
e91b8d4556
... 2021-04-10 14:08:03 +05:30
Ravi R Kiran
fdfba4ea04 Fix pyflakes failures 2021-03-30 14:57:41 -05:00
Ravi R Kiran
953253de99 Implementation of hyper and meta 2021-03-30 14:23:17 -05:00
Kovid Goyal
1e6fe7785a
Dont set the EDITOR env var in child processes
It isnt really needed, since the various kittens dont rely on it
anymore, instead calling get_editor() to get the path to the editor.
Has the nice side-effect of not needing to run the shell at startup
to read its environment. Now the shell is only run if the user calls
the edit config file kitten. Fixes #3426
2021-03-29 11:56:48 +05:30
Kovid Goyal
2eccc81fee
Show a message about how to exit --hold 2021-03-10 14:26:11 +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
5297f7474d
Remove another use of GLFW_KEY 2021-01-16 20:52:13 +05:30
Kovid Goyal
b94d2b27f4
Refactor single key config parsing to use a special type 2021-01-07 18:07:17 +05:30
Luflosi
f55ca296da
Fix typo 2020-09-18 13:50:56 +02:00
Kovid Goyal
392c31f5fe
Allow specifying watchers in session files and via a command line argument 2020-08-23 10:41:36 +05:30
Kovid Goyal
5e48ae8bac
pep8 2020-05-12 22:54:08 +05:30
Kovid Goyal
0eef48b516
Use literals as the type for cli opts that take choices 2020-04-24 15:28:04 +05:30
Kovid Goyal
85b55b31b6
Add a new :opt:listen_on option in kitty.conf
Also allow using environment variables in this option
Fixes #2569
2020-04-19 09:23:52 +05:30
Kovid Goyal
457fcbfb90
Merge branch 'master' of https://github.com/akobel/kitty 2020-04-15 07:44:27 +05:30
Alexander Kobel
e6e61028b1 Rename --debug-gl to --debug-rendering 2020-04-14 19:35:40 +02:00
Kovid Goyal
747ac85e7c
Add an :option:launch --watcher option that allows defining callbacks that are called for various events in the window's life-cycle
Fixes #2440
2020-03-28 12:13:42 +05:30
Kovid Goyal
4e58062025
Improve rendering of :option: in cli docs 2020-03-24 22:03:00 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING 2020-03-15 13:27:40 +05:30
Kovid Goyal
c912eef040
Minor strictness increases 2020-03-14 14:59:31 +05:30
Kovid Goyal
149ae2866a
more typing work 2020-03-12 08:10:51 +05:30
Kovid Goyal
fc0adfd965
more typing work 2020-03-10 15:48:51 +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
ef879bab9c
Fix #2411 2020-03-06 07:19:33 +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
c9ce2f47dc
No top level typing issues found in kitty package 2020-03-04 07:31:22 +05:30
Kovid Goyal
f12031e284
Make the run-program example a little fancier 2020-01-13 12:16:43 +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
6f6180c34a
Change URL to avoid redirect
Since `https://sw.kovidgoyal.net/kitty` redirects to `https://sw.kovidgoyal.net/kitty/`, it would be better to directly use the second URL.
2019-11-26 17:23:21 +01:00
Kovid Goyal
f113184165
Micro-optimization 2019-11-13 14:39:06 +05:30
Kovid Goyal
70c2765a6e
Allow reading session file from STDIN 2019-09-08 15:20:37 +05:30
Luflosi
5f855ce547
Use context managers to open files
Inspired by d50a6ddc1b.
2019-08-01 13:21:26 -05:00
Kovid Goyal
658be9405f
Document the kitty remote control protocol
Fixes #1646
2019-06-12 13:12:53 +05:30
Kovid Goyal
98d7fc9f39
Simplify code 2019-06-05 08:26:25 +05:30