generated from extratone/latte
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.fpl Route Extractor.jelly
27 lines (25 loc) · 1.14 KB
/
.fpl Route Extractor.jelly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Shortcuts
#Color: grape, #Icon: map
/*
Extract and copy waypoint identifiers as a space-delimited list.
𝗠𝘆 𝗰𝗼𝗻𝘁𝗮𝗰𝘁 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Email: [email protected]
Contact card: https://davidblue.wtf/db.vcf
RoutineHub Profile: https://routinehub.co/user/blue
GitHub: https://github.com/extratone
iOS-specific Repository: https://github.com/extratone/i
Telegram: https://t.me/DavidBlue
Telegram Channel: https://t.me/extratone
Discord: https://davidblue.wtf/discord
Twitter: https://twitter.com/NeoYokel
Reddit: https://reddit.com/u/asphaltapostle
Mastodon: https://mastodon.social/@DavidBlue
EVERYWHERE: https://davidblue.wtf/socialdrop
*/
setName(input: ShortcutInput, name: "${CurrentDate}.txt") >> setName
getTextFrom(input: Renamed Item) >> getTextFrom
matchText(text: "${Text}", regex: "<identifier>[\s\S]*?<\/identifier>") >> matchText
combineText(text: Matches, combine: Spaces) >> combineText
replaceText(input: "${Combined Text}", find: "<identifier>") >> replaceText
replaceText(input: "${Updated Text}", find: "</identifier>") >> replaceText 1
setClipboard(variable: Updated Text) >> setClipboard