Kovid Goyal
d09c20aa01
Store the global font_size on the opts object where it belongs
2021-06-04 21:51:02 +05:30
Kovid Goyal
81411e6b54
Fix trailing parentheses in URLs not being detected
...
Also fix URLs starting near the end of the line not being detected.
Fixes #3688
2021-06-04 18:13:36 +05:30
Kovid Goyal
a8d1c73fec
API to get text for currently marked URL
2021-06-04 14:35:22 +05:30
Kovid Goyal
1b3742efbb
Add a link to Iosevka in the changelog
2021-06-04 12:20:27 +05:30
Kovid Goyal
e01bb09e8c
Fix ligatures not working with the Iosevka font
...
Fixes #297
2021-06-04 12:18:17 +05:30
Kovid Goyal
2c9c0751a4
Speed up import of options.types
...
The color table attributes are never used in a type checked
environment, only via setattr/gettattr so dont create individual
get/setters for them. Reduaces the import time for this module from 2ms
to 0.7ms
Since attribute access is implemented via __getattr__ there should be no
performance implications for normal attribute access, as __getattr__ is
only called if normal attribute access fails. setattr becomes slightly
slower but that is done very rarely.
2021-06-04 06:01:55 +05:30
Kovid Goyal
e10a7579e8
Remove unreachable code
2021-06-04 05:40:27 +05:30
Kovid Goyal
c52a04c7d3
Use a tuple for clipboard control
...
Avoids churn in the generated options files as python randomized set
ordering
2021-06-04 05:36:05 +05:30
Kovid Goyal
79dd98b20e
Use a more efficient representation of the color table on the Options object
2021-06-03 22:17:37 +05:30
Kovid Goyal
2e71429b03
Auto generate the boilerplate code to convert python opts to c opts
2021-06-03 18:30:13 +05:30
Kovid Goyal
4ab299d0af
When reflowing the screen, also reflow the saved cursor position
2021-06-03 15:35:48 +05:30
Kovid Goyal
c60a941d1b
Allow rewrap_inner to track multiple positions
2021-06-03 12:29:27 +05:30
Kovid Goyal
e2197c586b
Forgot a brace
2021-06-03 12:11:31 +05:30
Kovid Goyal
93e9d3cb5f
Fix a crash on exit on macOS
...
Calling Python API functions is not allowed in atexit handlers.
Fixes #3686
2021-06-03 11:54:55 +05:30
Kovid Goyal
2e7b68bf74
Move python to C converters into their own header
2021-06-01 21:18:39 +05:30
Kovid Goyal
6ffb198e9c
DRYer
2021-06-01 21:15:36 +05:30
Kovid Goyal
604458810e
Start work on autogenerating opts to c conversion boilerplate
2021-06-01 13:33:19 +05:30
Kovid Goyal
af5ed093b8
Fix test failing on macOS
2021-05-31 17:54:57 +05:30
Kovid Goyal
8f491e7dbb
Add newslines at end of generated files and do imports in sorted order
2021-05-31 17:45:02 +05:30
Kovid Goyal
c1324da3fc
missing newline in debug print
2021-05-31 17:42:10 +05:30
Kovid Goyal
0bbc4462fd
Coalesce shortcuts as well
2021-05-31 17:40:49 +05:30
Kovid Goyal
e0261e925e
DRYer
2021-05-31 17:40:49 +05:30
Kovid Goyal
46b3f71b8f
Start work on porting docs generation
2021-05-31 17:40:49 +05:30
Kovid Goyal
3e598a17cf
Add headers to options def files
2021-05-31 17:40:49 +05:30
Kovid Goyal
c1b13f2db2
DRYer
2021-05-31 17:40:49 +05:30
Kovid Goyal
a059e49579
Restore conf file generation in the new framework
2021-05-31 17:40:49 +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
43acf3c5b1
name parser for deprecated send text appropriately
2021-05-31 17:40:48 +05:30
Kovid Goyal
f7db9e3527
Move deprecated parsers into utils
2021-05-31 17:40:48 +05:30
Kovid Goyal
1621a67f36
unused import
2021-05-31 17:40:48 +05:30
Kovid Goyal
248631a1a8
Add tests for conf parsing
2021-05-31 17:40:48 +05:30
Kovid Goyal
b4cb6e10ca
Dont resolve kitty_mod in the defaults key definitions
...
Needed to allow multiple load_config calls
2021-05-31 17:40:48 +05:30
Kovid Goyal
5fa73e4413
Dont use a unneccessary global variable
2021-05-31 17:40:48 +05:30
Kovid Goyal
49c4b20113
Report bad choice values when parsing config
2021-05-31 17:40:48 +05:30
Kovid Goyal
43ece23b89
the args for KeyAction are not just strings
2021-05-31 17:40:48 +05:30
Kovid Goyal
f976851442
Make the repr for KeyAction more compact
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
ddd178fa82
Move clear_all_shortcuts to options_types
2021-05-31 17:40:48 +05:30
Kovid Goyal
8d411cac5f
...
2021-05-31 17:40:48 +05:30
Kovid Goyal
bfbb85399e
Move action parsing to option_types
2021-05-31 17:40:47 +05:30
Kovid Goyal
9f8a120664
Add __repr__ for action definitions
2021-05-31 17:40:47 +05:30
Kovid Goyal
e1cd6b6037
kitten_alias is also an is_multiple option
2021-05-31 17:40:47 +05:30
Kovid Goyal
2fd4487922
Better naming of action parsers
2021-05-31 17:40:47 +05:30
Kovid Goyal
27a459b0dd
Refactor action parsers as generators
2021-05-31 17:40:47 +05:30
Kovid Goyal
6c344d4ae2
Move the action parsing code into options_types
2021-05-31 17:40:47 +05:30
Kovid Goyal
d7aa9952d8
Fix a regression that caused using the `title` command in session files to stop working
...
Fixes #3676
2021-05-31 09:31:29 +05:30
Kovid Goyal
09093c8f3e
Cleanup PR
2021-05-30 12:47:00 +05:30
Kovid Goyal
222bf09df4
Merge branch 'libstartup-notification' of https://github.com/ctrlcctrlv/kitty
2021-05-30 12:45:13 +05:30
Fredrick Brennan
3041ff8d25
Downgrade libstartup-notification-1.so non-existence to warning
...
I'm not sure how common this library actually is. On my system, an Arch
Linux system with 2,170 packages installed, including KDE (Plasma), I
didn't have it.
It's downgraded to a warning instead of printing a traceback.
2021-05-30 03:05:42 -04:00