1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-09 15:47:12 +02:00

Fixed Directory for open Random Note

This commit is contained in:
Ryan Greenup
2020-07-16 22:48:28 +10:00
parent 3d4cd5bd55
commit 65be6ea82c

View File

@@ -204,7 +204,7 @@ CadmusTools () {
;; ;;
page-import) shift; xclip -o -selection clipboard | xargs curl | pandoc -f html -t markdown_github+tex_math_dollars --atx-headers | xclip -selection clipboard && exit 0 page-import) shift; xclip -o -selection clipboard | xargs curl | pandoc -f html -t markdown_github+tex_math_dollars --atx-headers | xclip -selection clipboard && exit 0
;; ;;
random) shift; find ./ -name '*.md' | shuf -n 1 | xargs xdg-open && exit 0 random) shift; find "${NOTES_DIR}" -name '*.md' | shuf -n 1 | xargs xdg-open && exit 0
;; ;;
odt) shift; FILE="$(mktemp --suffix ".odt")"; xclip -selection clipboard -o | pandoc -s --self-contained -f markdown --mathml -t odt -s -o "${FILE}"; xdg-open "${FILE}" && exit 0 odt) shift; FILE="$(mktemp --suffix ".odt")"; xclip -selection clipboard -o | pandoc -s --self-contained -f markdown --mathml -t odt -s -o "${FILE}"; xdg-open "${FILE}" && exit 0
;; ;;