diff --git a/bin/NoteFind.sh b/bin/NoteFind.sh index e029214..eda2498 100755 --- a/bin/NoteFind.sh +++ b/bin/NoteFind.sh @@ -106,6 +106,8 @@ SkimNotes () { # **** Skim with Grep SkimGrep () { + + find . -type f \( -name "*.org" -o -name "*.md" \) |\ sk --ansi -m -c 'rg -l -t markdown -t org -t txt --ignore-case "{}"' \ --preview "bat --style snip {} 2> /dev/null \ --color=always --line-range :500 \ diff --git a/bin/NoteRecollSearch.sh b/bin/NoteRecollSearch.sh index d036ea0..bb62714 100755 --- a/bin/NoteRecollSearch.sh +++ b/bin/NoteRecollSearch.sh @@ -117,6 +117,8 @@ NoteSearchRecoll () { # sk -i -c 'recoll -b -t -q "ext:md" {} | cut -c 8- | sd '^' 'realpath "' | sd '$' '" --relative-to "./"' | bash ' --bind pgup:preview-page-up,pgdn:preview-page-down --preview "bat --color=always --line-range :500 --terminal-width 80 --theme=Dracula {}" # Better Theme RelativePath () { + + find . -type f \( -name "*.org" -o -name "*.md" \) sk -m -i -c 'recoll -b -t -q "ext:md OR ext:org" {} |\ cut -c 8- | sed s/^/realpath\ \"/ |\ sed s+\$+\"\ --relative-to\ \"./\"+ | bash' \