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

Added Org Files to Recoll Search

This commit is contained in:
Ryan Greenup 2020-11-15 16:26:27 +11:00
parent b89e0f5399
commit 56d0ce6332

View File

@ -117,7 +117,7 @@ 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 () {
sk -m -i -c 'recoll -b -t -q "ext: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' \
--bind pgup:preview-page-up,pgdn:preview-page-down \