S p a c e d w o r d s

would it be very difficult to create an extension which puts a space in between each letter of a selected word/s and at the beginning and end of the word/s?

so popclip becomes
p o p c l i p

1 Like

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

this is a w e s o m e ! thank you so much!!

1 Like