From 4fad44115ef09948a6272d18b2c29f4f371367b6 Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Thu, 16 Jul 2020 05:54:40 +1000 Subject: [PATCH] Removed highlighting to fix multiple terms --- bin/NoteRecollSearch.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bin/NoteRecollSearch.sh b/bin/NoteRecollSearch.sh index de68b85..dbed945 100755 --- a/bin/NoteRecollSearch.sh +++ b/bin/NoteRecollSearch.sh @@ -121,16 +121,10 @@ NoteSearchRecoll () { cut -c 8- | sed s/^/realpath\ \"/ |\ sed s+\$+\"\ --relative-to\ \"./\"+ | bash' \ --bind pgup:preview-page-up,pgdn:preview-page-down \ - --preview "bat {} 2> /dev/null \ - --color=always --line-range :500 \ - --terminal-width 80 \ - --theme=TwoDark |\ - rg --pretty --colors --context 20 {cq} \ - --no-line-number --ignore-case \ - --colors 'match:fg:21,39,200' \ - --colors 'line:style:nobold' \ - --colors 'match:style:bold' \ - --colors 'match:bg:30,200,30'" \ + --preview "bat --color=always --line-range :500 \ + --terminal-width 80 --theme=TwoDark {+} \ + --italic-text=always \ + --decorations=always" \ --color=fg:#f8f8f2,bg:-1,matched:#6272a4,current_fg:#50fa7b,current_bg:#381070,border:#ff79c6,prompt:#bd93f9,query:#bd93f9,marker:#f1fa8c,header:#f1fa8c } RELATIVE_PATH="$(RelativePath)"