Change default format to text/plain; Add manual input recipients

This commit is contained in:
localhost_frssoft 2022-04-26 14:57:12 +03:00
parent cc9ecb2754
commit 29faa6e72d
2 changed files with 6 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"per_status_mode": false,
"enabled_nsfw": true,
"hide_reblogs": false,
"default_content_type": "text/markdown",
"default_content_type": "text/plain",
"default_visibility": "unlisted",
"format_time": "+%d.%m.%Y %H:%M:%S",
"boost_symbol": "[>>]",

View file

@ -572,7 +572,7 @@ reply_mode()
reply_status=$(status_api_one "$status_id")
fi
if [ "$quoting_reply" = 'true' ]; then
echo "$reply_status" | jj content | html_to_txt_render | sed 's/^/> /' > tmp_status.md
echo "$reply_status" | jj -r content | html_to_txt_render | delqse | sed 's/^/> /' > tmp_status.md
fi
if [ "$copy_mentions" = 'true' ]; then
mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq | legacy_addr_preprocess)
@ -713,7 +713,7 @@ write_status_menu()
if [ -n "$http_code" ]; then
echo "Send state: $http_code"
fi
wrirepostmenu=$(echo "Edit\nSend\nAdd attach\nChange type\nVisiblity\nReset\nBack\nMain menu" | fzy)
wrirepostmenu=$(echo "Edit\nSend\nAdd attach\nAdd recipient\nChange type\nVisiblity\nReset\nBack\nMain menu" | fzy)
case $wrirepostmenu in
"Edit") $EDITOR tmp_status.md ;;
"Send") http_code=$(write_api_status "$(cat tmp_status.md)") ;;
@ -721,6 +721,9 @@ write_status_menu()
echo 'Input path to attach (ex. @image.png or @/full/path/to/attach.png)'
read mediaattach
;;
"Add recipient")
echo 'Input addr (ex. nick@domain.domain,etc@domain.domain)'
read mentions_reply ;;
"Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;;
"Visiblity")
status_visibility=$(echo 'public\nunlisted\nlocal\nprivate\ndirect\nlist' | fzy)