My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

15 行
347 B

  1. #!/usr/bin/env sh
  2. # Description: Find and list files by mime type in smart context
  3. #
  4. # Shell: POSIX compliant
  5. # Author: Arun Prakash Jana
  6. . "$(dirname "$0")"/.nnn-plugin-helper
  7. printf "mime (e.g., video/audio/image): "
  8. read -r mime
  9. printf "%s" "+l" > "$NNN_PIPE"
  10. find . | file -if- | grep "$mime" | awk -F: '{printf "%s\0", $1}' > "$NNN_PIPE"