From c242fa019b17486cc08f5de2187d5467aa8c957f Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Mon, 21 Sep 2020 19:26:39 +1000 Subject: [PATCH 1/2] Fixed Calling Help --- bin/cadmus | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/cadmus b/bin/cadmus index b027072..5e17ac3 100755 --- a/bin/cadmus +++ b/bin/cadmus @@ -764,14 +764,13 @@ subHelp () { echo -e "\e[1;35m -------------------------\e[0m " echo -e " \e[1;94m\e[3m\e[1m Cadmus Find \e[0m" echo -e "\e[1;35m -------------------------\e[0m " - NoteFind.sh -h - + "${script_dir}/NoteFind.sh" echo echo echo -e "\e[1;35m -------------------------\e[0m " echo -e " \e[1;94m\e[3m\e[1m Cadmus Search\e[0m" echo -e "\e[1;35m -------------------------\e[0m " - NoteRecollSearch.sh -h + "${script_dir}/NoteRecollSearch.sh" echo echo From ffa1640104ce9c097d1233a7d5745cd95fb9f7fb Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Thu, 1 Oct 2020 09:12:25 +1000 Subject: [PATCH 2/2] Changed Note Search to MDCat from Bat (for aesthetics) --- bin/NoteRecollSearch.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/NoteRecollSearch.sh b/bin/NoteRecollSearch.sh index 28ee15f..75a33f5 100755 --- a/bin/NoteRecollSearch.sh +++ b/bin/NoteRecollSearch.sh @@ -121,10 +121,7 @@ NoteSearchRecoll () { cut -c 8- | sed s/^/realpath\ \"/ |\ sed s+\$+\"\ --relative-to\ \"./\"+ | bash' \ --bind pgup:preview-page-up,pgdn:preview-page-down \ - --preview "bat --color=always --line-range :500 \ - --terminal-width 80 --theme=TwoDark {+} \ - --italic-text=always \ - --decorations=always" \ + --preview "mdcat {+}" \ --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)"