diff options
| author | Jason Felice <jason.m.felice@gmail.com> | 2020-06-12 11:21:38 -0400 |
|---|---|---|
| committer | Jason Felice <jason.m.felice@gmail.com> | 2020-06-12 11:29:55 -0400 |
| commit | bdd7ea6a03ce6765904db0769b8a477468edc7d5 (patch) | |
| tree | ed148f45452ce038c96ebbb54ab3c4b832df5f17 /rc/detection | |
| parent | 66f15cf4ad8b0127f93503cad41d570a7c9f5d72 (diff) | |
Detect text/x-script.* and application/x-* types
Diffstat (limited to 'rc/detection')
| -rw-r--r-- | rc/detection/file.kak | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/detection/file.kak b/rc/detection/file.kak index 55fca1c8..2c2f8781 100644 --- a/rc/detection/file.kak +++ b/rc/detection/file.kak @@ -7,8 +7,10 @@ hook global BufOpenFile .* %{ evaluate-commands %sh{ image/*+xml) filetype="xml" ;; #SVG message/rfc822) filetype="mail" ;; text/x-shellscript) filetype="sh" ;; + text/x-script.*) filetype="${mime#text/x-script.}" ;; text/x-*) filetype="${mime#text/x-}" ;; text/*) filetype="${mime#text/}" ;; + application/x-*) filetype="${mime#application/x-}" ;; application/*) filetype="${mime#application/}" ;; esac if [ -n "${filetype}" ]; then |
