From 20903a2df6a19f14d4a262a7772fc5b8717c85fb Mon Sep 17 00:00:00 2001 From: ryangreenup Date: Fri, 23 Apr 2021 12:03:41 +1000 Subject: [PATCH] Remove interactive and preview occurring simultaneous from broken skim --- bin/NoteFind.sh | 2 +- bin/NoteRecollSearch.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/NoteFind.sh b/bin/NoteFind.sh index f0420a0..e2f6274 100755 --- a/bin/NoteFind.sh +++ b/bin/NoteFind.sh @@ -106,7 +106,7 @@ SkimNotes () { # **** Skim with Grep SkimGrep () { -sk --ansi -m -c 'rg -l -t markdown -t org -t txt --ignore-case "{}"' \ +sk --ansi -m \ --preview "bat --style snip {} 2> /dev/null \ --color=always --line-range :500 \ --terminal-width 80 \ diff --git a/bin/NoteRecollSearch.sh b/bin/NoteRecollSearch.sh index 7e266a4..cabca15 100755 --- a/bin/NoteRecollSearch.sh +++ b/bin/NoteRecollSearch.sh @@ -112,6 +112,8 @@ NoteSearchRecoll () { cd "${1}" ## Currently preview and command mode do not work together + # sk -c "recoll -b -t -q ext:md OR ext:org '{}' | cut -c 8-" --preview 'cat {}' | xargs realpath + sk -i -c "recoll -b -t -q ext:md OR ext:org '{}' | cut -c 8-" | xargs realpath exit 0