mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-04-21 02:01:50 +02:00
Preliminary Term Highlighting
This commit is contained in:
parent
26ee8d6564
commit
33b4fdfd77
@ -109,14 +109,20 @@ NoteSearchRecoll () {
|
||||
# sk -i -c 'recoll -b -t -q "ext:md" {} | cut -c 8- | sd '^' 'realpath "' | sd '$' '" --relative-to "./"' | bash ' --bind pgup:preview-page-up,pgdn:preview-page-down --preview "bat --color=always --line-range :500 --terminal-width 80 --theme=Dracula {}"
|
||||
# Better Theme
|
||||
RelativePath () {
|
||||
sk -m -i -c 'recoll -b -t -q "ext:md" {} |\
|
||||
cut -c 8- | sed s/^/realpath\ \"/ |\
|
||||
sed s+\$+\"\ --relative-to\ \"./\"+ | bash' \
|
||||
sk -m -i -c 'recoll -b -t -q "ext:md" {} |\
|
||||
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 "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'" \
|
||||
--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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user