mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +00:00
complete_by_mimepat called mime.TypeByExtension directly, so it saw only the extensions the Go standard library knows about. Everything else in kitty that needs a mime type goes through utils.GuessMimeType, which also consults the user's mime.types, kitty's builtin types and KnownExtensions. As a result files like foo.py or foo.toml were not offered when completing arguments that ask for text/*, even though kitten pager opens them as text. |
||
|---|---|---|
| .. | ||
| markup | ||
| bash.go | ||
| command.go | ||
| completion-main.go | ||
| completion-parse-args.go | ||
| completion.go | ||
| files.go | ||
| files_test.go | ||
| fish.go | ||
| group.go | ||
| help.go | ||
| option-from-string.go | ||
| option.go | ||
| parse-args.go | ||
| types_test.go | ||
| wcswidth_kitten.go | ||
| zsh.go | ||