3 # Description: Find and list files by mime type in smart context
5 # Shell: POSIX compliant
6 # Author: Arun Prakash Jana
8 # shellcheck disable=SC1090,SC1091
9 . "$(dirname "$0")"/.nnn-plugin-helper
11 printf "mime (e.g., video/audio/image): "
14 printf "%s" "+l" > "$NNN_PIPE"
15 find . | file -if- | grep "$mime" | awk -F: '{printf "%s\0", $1}' > "$NNN_PIPE"