refactor(kitty): Remove spurious file, cleanup theme & plugin file

This commit is contained in:
Pratik Tripathy
2025-08-12 15:03:14 +05:30
parent c572ed6a46
commit faa45c7402
3 changed files with 5 additions and 178 deletions

View File

@@ -6,7 +6,10 @@ from kitty.key_encoding import KeyEvent, parse_shortcut
def is_window_vim(window, vim_id):
fp = window.child.foreground_processes
return any(re.search(vim_id, p['cmdline'][0] if len(p['cmdline']) else '', re.I) for p in fp)
return any(
re.search(vim_id, p["cmdline"][0] if len(p["cmdline"]) else "", re.I)
for p in fp
)
def encode_key_mapping(window, key_mapping):