mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-01 20:00:17 +02:00
[FEAT] TMSU mount
This commit is contained in:
15
bin/cadmus
15
bin/cadmus
@@ -156,7 +156,8 @@ CadmusTags () {
|
|||||||
filter) shift; "${script_dir}/tags/FilterNotesByTMSUTag.sh" "${NOTES_DIR}" "${@:-}"
|
filter) shift; "${script_dir}/tags/FilterNotesByTMSUTag.sh" "${NOTES_DIR}" "${@:-}"
|
||||||
;;
|
;;
|
||||||
create) shift; "${script_dir}/tags/tags-to-TMSU.sh" "${NOTES_DIR}" ${@:-} && exit 0
|
create) shift; "${script_dir}/tags/tags-to-TMSU.sh" "${NOTES_DIR}" ${@:-} && exit 0
|
||||||
./
|
;;
|
||||||
|
mount) shift; MountTags
|
||||||
;;
|
;;
|
||||||
--*) >&2 echo "bad option $1"
|
--*) >&2 echo "bad option $1"
|
||||||
;;
|
;;
|
||||||
@@ -168,6 +169,17 @@ CadmusTags () {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# **** Mount Tags
|
||||||
|
MountTags () {
|
||||||
|
cd "${NOTES_DIR}"
|
||||||
|
|
||||||
|
DIR="$(mktemp -d)"
|
||||||
|
|
||||||
|
tmsu mount "${DIR}"
|
||||||
|
nautilus "${DIR}" && exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# **** Help
|
# **** Help
|
||||||
function TagsHelp() {
|
function TagsHelp() {
|
||||||
|
|
||||||
@@ -179,6 +191,7 @@ function TagsHelp() {
|
|||||||
echo -e " ..............\e[1;34m┊┊┊\e[0m........................................... "
|
echo -e " ..............\e[1;34m┊┊┊\e[0m........................................... "
|
||||||
echo -e " \e[1;93m filter \e[0m \e[1;34m ┊┊┊ 🎆 \e[0m Find Notes based on FileName"
|
echo -e " \e[1;93m filter \e[0m \e[1;34m ┊┊┊ 🎆 \e[0m Find Notes based on FileName"
|
||||||
echo -e " \e[1;32m create \e[0m \e[1;34m ┊┊┊ 🎆 \e[0m Create Tags with TMSU"
|
echo -e " \e[1;32m create \e[0m \e[1;34m ┊┊┊ 🎆 \e[0m Create Tags with TMSU"
|
||||||
|
echo -e " \e[1;32m mount \e[0m \e[1;34m ┊┊┊ 🎆 \e[0m Mount Tags as a Virtual FS"
|
||||||
echo
|
echo
|
||||||
echo -e " \e[3m\e[1m• Notes\e[0m "
|
echo -e " \e[3m\e[1m• Notes\e[0m "
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user