1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-06 19:12:26 +02:00

[FEAT] Print NOtes to Terminal

This commit is contained in:
Ryan Greenup 2020-07-17 00:56:26 +10:00
parent 24c0826eef
commit ab40260127

View File

@ -101,7 +101,7 @@ arguments () {
# *** Find
function NoteFind() {
COMMAND="NoteFind.sh"
COMMAND="${script_dir}/NoteFind.sh"
echo "Running "${COMMAND}" "${1}""
FILES="$("${COMMAND}" "${@:-}")"
@ -128,7 +128,7 @@ function NoteFind() {
# *** Search
function NoteSearch() {
COMMAND="NoteRecollSearch.sh"
COMMAND="${script_dir}/NoteRecollSearch.sh"
echo "Running "${COMMAND}" "${1}""
FILES="$("${COMMAND}" "${@:-}")"
@ -417,6 +417,8 @@ CadmusMisc() {
;;
wR) shift; wmctrl -R "$(wmctrl -l | cut -f 5- -d " " | fzf)" && exit 0
;;
print) shift; "${script_dir}/NoteFind.sh" "${NOTES_DIR}" | xargs mdcat
;;
--*) >&2 echo "bad option $1"
;;
*) >&2 echo -e "argument \e[1;35m${1}\e[0m has no definition."