add nnn configs

This commit is contained in:
Simon Belmont 2025-03-24 12:56:20 -04:00
parent b0345efb7e
commit cba9e9e72b
59 changed files with 5175 additions and 1 deletions

15
.config/nnn/plugins/mimelist Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env sh
# Description: Find and list files by mime type in smart context
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
# shellcheck disable=SC1090,SC1091
. "$(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"