S p a c e d w o r d s

Something like:

// #popclip
// name: S p a c e d w o r d s
// icon: sw
// language: javascript
// after: paste-result
let result = "";
for (const c of popclip.input.text) {
    result += " " + c;
}
return result.trim(); 

(The above block is an extension snippet โ€” select it then click โ€œInstall Extensionโ€ in PopClip.)

Note inserting the spaces will mess up with some emoji, e.g. :family_man_woman_boy_boy: becomes :man: โ€ :woman: โ€ :boy: โ€ :boy: and :australia: becomes ๐Ÿ‡ฆ ๐Ÿ‡บ .

1 Like