mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-02-22 21:53:34 +01:00
Add Relative Path Option
This commit is contained in:
parent
c3957f92bf
commit
c152e2c589
@ -106,6 +106,9 @@ NoteRecollSearch () {
|
||||
##
|
||||
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 "
|
||||
|
||||
## Display Path Relative to Notes Dir
|
||||
sk -i -c 'recoll -b -t -q "ext:md" | cut -c 8- | cut -d \'/\' -f5- ' --bind pgup:preview-page-up,pgdn:preview-page-down --preview "echo {} | xargs basename | xargs fd | xargs realpath | xargs bat --color=always --line-range :500 --terminal-width 80 --theme=Dracula "
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user