Convert words to hashtags ("Hashtag List")

An email from a user:

Take your comma list using the same idea

convert words separated by a space to hashtags so they can be quickly inserted into social media
OHHHHLALALA Brilliant!!

word count should then give a total count of the number of hashtags…

This can be done as an extension snippet like this:

#popclip
name: Hashtag List
icon: 'square filled #'
after: paste-result
javascript: |
  const words = popclip.input.text.split(' ')
  return '#' + words.join(' #')

(The above block is an extension snippet - select it to install the extension with PopClip)

Example:
CleanShot 2022-10-25 at 10.44.09

NOTES:
I had to put the icon specifier 'square filled #' in quotes because without them, the # is just a YAML comment.

2 Likes

hi, have installed popclip from setapp but I can’t add the actions !!!

Hey @chiyaga, oops that shouldn’t happen! let’s see if we can figure it out. Did you previously use the non-Setapp version of PopClip, or was the install from Setapp the first time you have installed it?

the one I downloaded from the app store has no problem, but from setapp I get this error !

then delete it from the app store but it was the same problem so now I don’t use from setapp since it doesn’t work! I mean I can’t add actions!