attachment script and markdown preview
This commit is contained in:
@@ -44,7 +44,8 @@
|
|||||||
"charset": "utf-8",
|
"charset": "utf-8",
|
||||||
"save_draft_on_force_quit": "true",
|
"save_draft_on_force_quit": "true",
|
||||||
"attachment_words": "attach,anbei,anhang,angehängt",
|
"attachment_words": "attach,anbei,anhang,angehängt",
|
||||||
"attachment_directory": "~"
|
"attachment_directory": "~",
|
||||||
|
"markdown_processor": "marked"
|
||||||
},
|
},
|
||||||
"mail": {
|
"mail": {
|
||||||
"reply": {
|
"reply": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# based on https://github.com/astroidmail/astroid/issues/339#issuecomment-300491869
|
# based on https://github.com/astroidmail/astroid/issues/339#issuecomment-300491869
|
||||||
|
|
||||||
cachedir=~/.cache/astroid-attachments
|
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"
|
touch $cachedir/token."$attachment"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user