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

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

This can be done as an extension snippet like this:

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)

CleanShot 2022-10-25 at 10.44.09

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


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?

works for me! great. thank.

1 Like