1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-13 17:44:08 +02:00

Laid out basic Functions

This commit is contained in:
ryangreenup
2020-07-15 00:34:55 +10:00
parent f78ac2c3e9
commit de74c92bdc

View File

@@ -31,9 +31,10 @@ check_for_dependencies () {
# **** List of Dependencies
declare -a DependArray=(
"rg"
"sk"
"mdcat"
"mdcat"
"sk"
"recoll"
"xclip"
)
@@ -98,6 +99,14 @@ NoteRecollSearch () {
echo "This is the function"
## Display full path
sk -i -c 'recoll -b -t -q "ext:md {}" | cut -c 8-' --bind pgup:preview-page-up,pgdn:preview-page-down --preview "bat --color=always --line-range :500 --terminal-width 80 --theme=Dracula {}"
## Display only file name
##
sk -i -c 'recoll -b -t -q "ext:md" | cut -c 8- | sd \'^\' \'"\' | sd \'$\' \'"\' | sd \'^\' \'basename \' | bash' --bind pgup:preview-page-up,pgdn:preview-page-down --preview "echo {} | xargs fd | xargs bat --color=always --line-range :500 --terminal-width 80 --theme=Dracula "
exit 0
}