Extension: Add a dot to the end of every line

# popclip
name: Add dot to the end of every line
icon: circle filled .
javascript: |
  const text = popclip.input.text;
  popclip.pasteText(text.split(/\n/).map(line => line.trim() + '.').join('\n'));

(The above block is an extension snippet - select it, then click “Install Extension” in PopClip.)

The extension can easily be adapted to add other characters to the lines. To do this, the dot in '.' must be exchanged for the desired characters.

1 Like