Kovid Goyal
ad69143573
Improve config debug output for is_multiple variables
2021-06-05 14:39:43 +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
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
33e63f000a
Make mouse mapping gen-config order stable
2021-06-05 12:22:54 +05:30
Kovid Goyal
1c8b7955eb
Have gen-config output action names as comments
2021-06-05 12:20:43 +05:30
Kovid Goyal
0bade29c25
Fix a gen-config bug that was causing macos shortcuts to be defined on linux as well
2021-06-05 10:14:30 +05:30
Kovid Goyal
4cff3e51cb
macOS: Add a global menu entry to reset the terminal
2021-06-05 10:12:44 +05:30
Kovid Goyal
d264c3d91e
typo
2021-06-05 10:10:23 +05:30
Kovid Goyal
099fed07e9
Note that set-font-size --all changes configured size
2021-06-05 09:39:10 +05:30
Kovid Goyal
091fec0867
Add tab bar margin height to changelog
...
Fixes #3685
Fixes #3247
2021-06-05 09:18:52 +05:30
Kovid Goyal
a670268a6b
Add blank rects for tab bar padding
2021-06-05 09:16:24 +05:30
Kovid Goyal
caa44b3d4a
Position tab bar as per new margin options
...
Also mouse clicking anywhere in the tab bar margins should be the same
as clicking in the tab bar, for ease of use.
2021-06-05 09:02:01 +05:30
Kovid Goyal
f3977da8f3
Start work on options for tab bar vertical margins
...
Create the option, now need to implement it.
2021-06-05 09:01:57 +05:30
Kovid Goyal
7dc3184f31
...
2021-06-04 22:00:15 +05:30
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