mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Fix completion for edit-in-kitty not including some common text file types
This commit is contained in:
@@ -190,6 +190,8 @@ Detailed list of changes
|
||||
|
||||
- Fix scrollbar hover/interaction not working when the scrollbar is drawn in the window margin area (:iss:`9756`)
|
||||
|
||||
- Fix completion for ``edit-in-kitty`` not including some common text file types
|
||||
|
||||
0.46.2 [2026-03-21]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -758,7 +758,8 @@ def update_completion() -> None:
|
||||
print('import "github.com/kovidgoyal/kitty/tools/cli"')
|
||||
print('func AddCloneSafeOpts(cmd *cli.Command) {')
|
||||
completion_for_launch_wrappers('cmd')
|
||||
print(''.join(CompletionSpec.from_string('type:file mime:text/* group:"Text files"').as_go_code('cmd.ArgCompleter', ' = ')))
|
||||
m = ','.join(text_mimes)
|
||||
print(''.join(CompletionSpec.from_string(f'type:file mime:text/*,{m} ext:bash,zsh group:"Text files"').as_go_code('cmd.ArgCompleter', ' = ')))
|
||||
print('}')
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ text_mimes = (
|
||||
'application/x-sh',
|
||||
'application/x-csh',
|
||||
'application/x-shellscript',
|
||||
'application/x-fishscript',
|
||||
'application/x-awk',
|
||||
'application/javascript',
|
||||
'application/json',
|
||||
'application/xml',
|
||||
|
||||
Reference in New Issue
Block a user