From c84a67189ba9cd35c449ab7a49e3aacad2a7349d Mon Sep 17 00:00:00 2001 From: ryangreenup Date: Fri, 9 Apr 2021 20:24:41 +1000 Subject: [PATCH] Simplified NoteFind to fix broken search --- bin/NoteFind.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/NoteFind.sh b/bin/NoteFind.sh index f0420a0..812a698 100755 --- a/bin/NoteFind.sh +++ b/bin/NoteFind.sh @@ -138,5 +138,17 @@ sk --ansi -m -c 'rg -l -t markdown -t org -t txt --ignore-case "{}"' \ } +# **** Skim with Grep +SkimGrep () { + + fd '.*\.md$|.*\.org$' '/home/ryan/Notes/MD/' -L |\ + sk --ansi -m --preview "bat \ + --style snip {} 2> /dev/null \ + --color=always \ + --terminal-width 80" + +} + + # * Call Main Function main "${@}"