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:
@@ -31,9 +31,10 @@ check_for_dependencies () {
|
|||||||
# **** List of Dependencies
|
# **** List of Dependencies
|
||||||
|
|
||||||
declare -a DependArray=(
|
declare -a DependArray=(
|
||||||
"rg"
|
|
||||||
"sk"
|
|
||||||
"mdcat"
|
"mdcat"
|
||||||
|
"mdcat"
|
||||||
|
"sk"
|
||||||
|
"recoll"
|
||||||
"xclip"
|
"xclip"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -98,6 +99,14 @@ NoteRecollSearch () {
|
|||||||
|
|
||||||
echo "This is the function"
|
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
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user