mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-07-31 19:30:12 +02:00
[FIX] finally fixed search and find skim bug
This commit is contained in:
@@ -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 \
|
||||
|
@@ -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' \
|
||||
|
Reference in New Issue
Block a user