My build of nnn with minor changes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/env sh
-
- # Description: Run fd/find in subtree and list files by mime type in smart context
- # Dependencies: fd/find
- #
- # Shell: POSIX compliant
- # Author: Arun Prakash Jana
-
- . "$(dirname "$0")"/.nnn-plugin-helper
-
- if [ "$(cmd_exists fd)" -eq "0" ]; then
- fd=fd
- else
- fd=find
- fi
-
- printf "mime: "
- read -r mime
-
- printf "%s" "+l" > "$NNN_PIPE"
- $fd | file -if- | grep "$mime" | awk -F: '{printf "%s\0", $1}' > "$NNN_PIPE"
|