1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-21 18:21:51 +02:00

Restored Ripgrep hl to search, changed ~ to $HOME

This commit is contained in:
Ryan Greenup 2020-07-16 05:46:02 +10:00
parent d2a7f3f575
commit bc39e56610
2 changed files with 6 additions and 2 deletions

@ -125,7 +125,11 @@ NoteSearchRecoll () {
--color=always --line-range :500 \
--terminal-width 80 \
--theme=TwoDark |\
ag {cq} \
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'" \
--color=fg:#f8f8f2,bg:-1,matched:#6272a4,current_fg:#50fa7b,current_bg:#381070,border:#ff79c6,prompt:#bd93f9,query:#bd93f9,marker:#f1fa8c,header:#f1fa8c
}

@ -1,5 +1,5 @@
#! /usr/bin/env bash
readonly NOTES_DIR="~/Notes/MD/notes" ## TODO Global Variables are bad
readonly NOTES_DIR="$HOME/Notes/MD/notes" ## TODO Global Variables are bad
readonly RECOLL_CONFIG_DIR="$HOME/.cadmus"
# Author: Ryan Greenup <ryan.greenup@protonmail.com>
# abort on nonzero exitstatus