attachment script and markdown preview

This commit is contained in:
2017-11-14 12:24:25 +01:00
parent bae2bceb00
commit 62cfa32a83
2 changed files with 3 additions and 2 deletions

View File

@@ -44,7 +44,8 @@
"charset": "utf-8",
"save_draft_on_force_quit": "true",
"attachment_words": "attach,anbei,anhang,angehängt",
"attachment_directory": "~"
"attachment_directory": "~",
"markdown_processor": "marked"
},
"mail": {
"reply": {

View File

@@ -6,7 +6,7 @@
# based on https://github.com/astroidmail/astroid/issues/339#issuecomment-300491869
cachedir=~/.cache/astroid-attachments
attachment=$(echo "$1" | sed -E "s#.*astroid/.+?-##")
attachment=$(echo "$1" | sed -E "s|.*astroid/[a-zA-Z0-9]*?-||")
touch $cachedir/token."$attachment"