add content
This commit is contained in:
parent
94df7c8562
commit
cc9afc5ffe
140 changed files with 10414 additions and 1 deletions
14
data/home/.config/nnn/plugins/mimelist
Executable file
14
data/home/.config/nnn/plugins/mimelist
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# Description: Find and list files by mime type in smart context
|
||||
#
|
||||
# Shell: POSIX compliant
|
||||
# Author: Arun Prakash Jana
|
||||
|
||||
. "$(dirname "$0")"/.nnn-plugin-helper
|
||||
|
||||
printf "mime (e.g., video/audio/image): "
|
||||
read -r mime
|
||||
|
||||
printf "%s" "+l" > "$NNN_PIPE"
|
||||
find . | file -if- | grep "$mime" | awk -F: '{printf "%s\0", $1}' > "$NNN_PIPE"
|
Loading…
Add table
Add a link
Reference in a new issue