Make CLI Only kittens run in overlay windows when run via the kitten
action mapping by default.
This commit is contained in:
Kovid Goyal
2024-07-05 13:14:48 +05:30
parent d8dc237af7
commit 24f01136c7
3 changed files with 32 additions and 22 deletions

View File

@@ -1,8 +1,6 @@
import os
if __name__ == '__main__':
import os
import sys
from kitty.constants import kitten_exe
def main(args: 'list[str]') -> None:
# allow running this kitten via map key kitten choose-fonts
os.execlp(kitten_exe(), 'kitten', *args)
from kitty.constants import kitten_exe
os.execlp(kitten_exe(), 'kitten', *sys.argv)