From ebb6f153b51332ce2b64b3e717ea956484749d4c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 3 May 2020 16:16:14 +0530 Subject: Context code '+' to create context smartly --- plugins/mimelist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mimelist') diff --git a/plugins/mimelist b/plugins/mimelist index 0ec7c0f..5635afd 100755 --- a/plugins/mimelist +++ b/plugins/mimelist @@ -1,6 +1,6 @@ #!/usr/bin/env sh -# Description: Run fd/find in subtree and list files by mime type in current context +# Description: Run fd/find in subtree and list files by mime type in smart context # Requires: fd/find # # Shell: POSIX compliant @@ -17,5 +17,5 @@ fi printf "mime: " read -r mime -printf "%s" "0l" > "$NNN_PIPE" +printf "%s" "+l" > "$NNN_PIPE" $fd | file -if- | grep "$mime" | awk -F: '{printf "%s\0", $1}' > "$NNN_PIPE" -- cgit v1.2.3-70-g09d2