extratone / taio

Configurables, actions, documentation, etc. for Taio.
Other
6 stars 0 forks source link

Typefully Action #19

Open extratone opened 1 year ago

extratone commented 1 year ago

Sends selected text to Typefully.com as a new thread draft. If no text is selected, the entire document or clip contents will be passed.

extratone commented 1 year ago
{
  "actions" : [
    {
      "type" : "@editor.selected-text",
      "parameters" : {
        "fallback" : 1
      }
    },
    {
      "type" : "@text.encode",
      "parameters" : {
        "mode" : 0,
        "decode" : false,
        "text" : {
          "value" : "$",
          "tokens" : [
            {
              "location" : 0,
              "value" : "@input"
            }
          ]
        },
        "base64Options" : 0
      }
    },
    {
      "type" : "@flow.set-variable",
      "parameters" : {
        "value" : {
          "value" : "$",
          "tokens" : [
            {
              "location" : 0,
              "value" : "@input"
            }
          ]
        },
        "name" : {
          "value" : "encoded"
        }
      }
    },
    {
      "type" : "@util.open-url",
      "parameters" : {
        "url" : {
          "value" : "https:\/\/typefully.com\/?new=$",
          "tokens" : [
            {
              "location" : 27,
              "value" : "encoded"
            }
          ]
        },
        "fullScreen" : false,
        "browser" : 1
      }
    }
  ],
  "buildVersion" : 1,
  "name" : "Typefully",
  "clientMinVersion" : 1,
  "summary" : "Sends selected text to Typefully.com as a new thread draft. If no text is selected, the entire document or clip contents will be passed.",
  "icon" : {
    "glyph" : "keyboard.chevron.compact.left",
    "color" : "#3FA1F8"
  },
  "clientVersion" : 1202
}