mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-09 15:47:12 +02:00
Backlinks Script takes argument, not static dir
This commit is contained in:
@@ -355,7 +355,7 @@ CadmusTools () {
|
|||||||
;;
|
;;
|
||||||
webtitle) shift; "${script_dir}/tools/PrintWebTitle.sh" "$(CLIP_OUT)" | CLIP_IN
|
webtitle) shift; "${script_dir}/tools/PrintWebTitle.sh" "$(CLIP_OUT)" | CLIP_IN
|
||||||
;;
|
;;
|
||||||
backlinks) shift; "${script_dir}/tools/List-Backlinks.sh" "$(CLIP_OUT)" ${@:-} && exit 0
|
backlinks) shift; "${script_dir}/tools/List-Backlinks.sh" "$(CLIP_OUT)" "${NOTES_DIR}" ${@:-} && exit 0
|
||||||
;;
|
;;
|
||||||
link) shift; "${script_dir}/tools/LinkMarkdownNotes.sh" "${NOTES_DIR}" "$(CLIP_OUT)" | CLIP_IN && exit 0
|
link) shift; "${script_dir}/tools/LinkMarkdownNotes.sh" "${NOTES_DIR}" "$(CLIP_OUT)" | CLIP_IN && exit 0
|
||||||
;;
|
;;
|
||||||
|
@@ -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 '.')
|
term=$(basename "${1}" | cut -f 1 -d '.')
|
||||||
|
|
||||||
rg -e "\[.*\]\(.*$term\.md\)" -e "\[\[$term\]\]" -e "\[\[$term.*\]\]" \
|
rg -e "\[.*\]\(.*$term\.md\)" -e "\[\[$term\]\]" -e "\[\[$term.*\]\]" \
|
||||||
~/Notes/MD/notes \
|
"${NOTES_DIR}" \
|
||||||
-t markdown -ol
|
-t markdown -ol
|
||||||
|
# ~/Notes/MD/notes \
|
||||||
|
|
||||||
|
|
||||||
## If you want to preview the Backlinks
|
## If you want to preview the Backlinks
|
||||||
|
Reference in New Issue
Block a user