1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-28 16:19:51 +02:00

Backlinks Script takes argument, not static dir

This commit is contained in:
Ryan Greenup
2021-01-27 17:37:39 +11:00
parent d81d75913c
commit b6fd03ebb4
2 changed files with 3 additions and 2 deletions

View File

@@ -9,8 +9,9 @@ command -v xclip >/dev/null 2>&1 || { echo >&2 "I require xclip but it's not ins
term=$(basename "${1}" | cut -f 1 -d '.')
rg -e "\[.*\]\(.*$term\.md\)" -e "\[\[$term\]\]" -e "\[\[$term.*\]\]" \
~/Notes/MD/notes \
"${NOTES_DIR}" \
-t markdown -ol
# ~/Notes/MD/notes \
## If you want to preview the Backlinks