mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +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 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]
|
0.46.2 [2026-03-21]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -758,7 +758,8 @@ def update_completion() -> None:
|
|||||||
print('import "github.com/kovidgoyal/kitty/tools/cli"')
|
print('import "github.com/kovidgoyal/kitty/tools/cli"')
|
||||||
print('func AddCloneSafeOpts(cmd *cli.Command) {')
|
print('func AddCloneSafeOpts(cmd *cli.Command) {')
|
||||||
completion_for_launch_wrappers('cmd')
|
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('}')
|
print('}')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ text_mimes = (
|
|||||||
'application/x-sh',
|
'application/x-sh',
|
||||||
'application/x-csh',
|
'application/x-csh',
|
||||||
'application/x-shellscript',
|
'application/x-shellscript',
|
||||||
|
'application/x-fishscript',
|
||||||
|
'application/x-awk',
|
||||||
'application/javascript',
|
'application/javascript',
|
||||||
'application/json',
|
'application/json',
|
||||||
'application/xml',
|
'application/xml',
|
||||||
|
|||||||
Reference in New Issue
Block a user