From b26d0b6ac5ae5889e74db4e08c22e6cf897c63cc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Feb 2026 08:57:54 +0530 Subject: [PATCH] Add more text file types to kitten diff completion Fixes #9556 --- kittens/diff/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kittens/diff/main.py b/kittens/diff/main.py index 31eea9ff7..e9e8d4eea 100644 --- a/kittens/diff/main.py +++ b/kittens/diff/main.py @@ -314,6 +314,8 @@ elif __name__ == '__doc__': cd['options'] = OPTIONS cd['help_text'] = help_text cd['short_desc'] = 'Pretty, side-by-side diffing of files and images' - cd['args_completion'] = CompletionSpec.from_string('type:file mime:text/* mime:image/* group:"Text and image files"') + cd['args_completion'] = CompletionSpec.from_string( + 'type:file mime:text/* mime:image/* ext:sh ext:json ext:yaml ext:toml ext:lua ext:rss ext:xml ext:xhtml' + ' group:"Text and image files"') elif __name__ == '__conf__': sys.options_definition = definition # type: ignore