1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-01-17 04:38:34 +01:00

[FIX] finally fixed search and find skim bug

This commit is contained in:
Ryan Greenup 2021-04-24 21:52:14 +10:00
parent 436c38333e
commit 8f287cd9a6
2 changed files with 4 additions and 0 deletions

View File

@ -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 \

View File

@ -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' \