extratone / taio

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

Clippings Backup Action #23

Open extratone opened 11 months ago

extratone commented 11 months ago

Clippings Backup Action

Metadata

Action Description

Backs up all clippings content - merged in a single text file - at [iCloud Storage]/clippings.md.

Description

This action uses the Get Clippings action step to return the content of all clippings, which is then counted by lines and backed up (by default) in the root of one's iCloud Drive storage for Taio as clippings.md. (iCloud Drive/Taio/Editor/clippings.md) Before finishing, the actions displays the number of lines it has backed up.


Source

```json { "actions": [ { "type": "@clips.get-text", "parameters": { "mode": 1 } }, { "type": "@flow.set-variable", "parameters": { "value": { "value": "$", "tokens": [ { "location": 0, "value": "@input" } ] }, "name": { "value": "clippings" } } }, { "type": "@text.count", "parameters": { "mode": 0, "text": { "value": "$", "tokens": [ { "location": 0, "value": "clippings" } ] } } }, { "type": "@flow.set-variable", "parameters": { "value": { "value": "$", "tokens": [ { "location": 0, "value": "@input" } ] }, "name": { "value": "count" } } }, { "type": "@editor.new", "parameters": { "location": 2, "openInEditor": false, "filename": { "value": "clippings.md" }, "text": { "value": "$", "tokens": [ { "location": 0, "value": "clippings" } ] }, "overwriteIfExists": true } }, { "type": "@ui.toast", "parameters": { "style": 0, "waitUntilDone": false, "title": { "value": "$ Clippings Backed Up", "tokens": [ { "location": 0, "value": "count" } ] } } } ], "buildVersion": 1, "name": "Clippings Backup", "clientMinVersion": 1, "summary": "Backs up all clippings content in a single file at [iCloud Storage]/clippings.md.", "icon": { "glyph": "externaldrive.badge.checkmark", "color": "#10ADC0" }, "clientVersion": 1222 } ```
extratone commented 11 months ago

Video Demo

https://github.com/extratone/taio/assets/43663476/6e2887d8-fb89-4683-8ecc-c9cfd6bb02c1