Fix completion for edit-in-kitty not including some common text file types
This commit is contained in:
parent
1a62cde212
commit
4798ccd0d2
3 changed files with 6 additions and 1 deletions
|
|
@ -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 @@
|
|||
'application/x-sh',
|
||||
'application/x-csh',
|
||||
'application/x-shellscript',
|
||||
'application/x-fishscript',
|
||||
'application/x-awk',
|
||||
'application/javascript',
|
||||
'application/json',
|
||||
'application/xml',
|
||||
|
|
|
|||
Loading…
Reference in a new issue