Implement metadata based previews in choose-files

This commit is contained in:
Kovid Goyal
2025-07-20 09:31:17 +05:30
parent 6347ea0210
commit 2e92d610d5
7 changed files with 272 additions and 8 deletions

View File

@@ -85,6 +85,7 @@ def completion(self: TestCompletion, tdir: str):
env['PATH'] = os.path.join(tdir, 'bin')
env['HOME'] = os.path.join(tdir, 'sub')
env['KITTY_CONFIG_DIRECTORY'] = os.path.join(tdir, 'sub')
print(1111111, all_argv)
cp = subprocess.run(
[kitten(), '__complete__', 'json'],
check=True, stdout=subprocess.PIPE, cwd=tdir, input=json.dumps(all_argv).encode(), env=env