From 40a36d7f148c3dee1b9d4556590a413327cd7a0a Mon Sep 17 00:00:00 2001 From: Ryan Greenup Date: Sun, 6 Sep 2020 15:36:46 +1000 Subject: [PATCH] Switched to MDCat in Anticipation of Fix --- bin/NoteFind.sh | 5 +---- bin/cadmus | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/NoteFind.sh b/bin/NoteFind.sh index 38a810b..7bb2beb 100755 --- a/bin/NoteFind.sh +++ b/bin/NoteFind.sh @@ -107,10 +107,7 @@ SkimNotes () { SkimGrep () { sk --ansi -m -c 'rg -l -t markdown --ignore-case "{}"' \ - --preview "bat {} 2> /dev/null \ - --color=always --line-range :500 \ - --terminal-width 80 \ - --theme=TwoDark |\ + --preview "mdcat {} 2> /dev/null |\ rg --pretty --colors --context 20 {cq} \ --no-line-number --ignore-case \ --colors 'match:fg:21,39,200' \ diff --git a/bin/cadmus b/bin/cadmus index 7b6062a..e2c6fac 100755 --- a/bin/cadmus +++ b/bin/cadmus @@ -422,7 +422,7 @@ makeNewNote () { echo -e "---\n" >> "${FILE}" echo -e "# "${NAME}"" >> "${FILE}" - bat "${FILE}" + mdcat "${FILE}" echo -e "Succesfully Created:\n "${FILE}"" nvim + "${FILE}"