Content sharing, viewing and editing with Another Term
In order to process an android.intent.action.SEND,
android.intent.action.SEND_MULTIPLE,
android.intent.action.VIEW or
android.intent.action.EDIT action,
a new session with several additional environment variables will be created
from a session profile selected by user from an additional chooser dialog.
“Show in «share with» / «open in» chooser dialog”
checkbox should be set in a session profile to make it visible.
Note: Any URIs passed to Another Term are accessible from all of its local shell sessions. The access control is to be implemented…
For version
Environment variables
-
INPUT_ACTION—Intent.getAction(). -
INPUT_MIME—Intent.getType().
Sharing
-
INPUT_TEXT[2|3|…][_URI] —android.intent.extra.TEXTif plain. -
INPUT_SPANNED[2|3|…][_URI] —android.intent.extra.TEXTif formatted (will be represented as HTML). -
INPUT_HTML[2|3|…][_URI] —android.intent.extra.HTML_TEXT.
Note: Suffix _URI is used
if input text is > 4096 B and cached by Another Term under a content URI
(see termsh uri).
-
INPUT_URIS— a space separated list ofandroid.intent.extra.STREAM. -
INPUT_SUBJECT—android.intent.extra.SUBJECT. -
INPUT_EMAIL_{TO|CC|BCC} —android.intent.extra.{EMAIL|CC|BCC}respectively.
Viewing and editing
INPUT_URI— content URI.
termsh
cat
| copy
| with-uris
etc.
are supposed to be used with these INPUT[...]_URI[S].
