Hi
I see another extension here “Remove Vertical Line(s) - #2 by nick”, which is very similar
Can v make a generic extension with the option to search & replace
Concept snippet, tho JS needs to be looked at. Cheers
# popclip
name: SearchNreplace
icon: Search filled dot
options:
- identifier: Search
label: Search Name
type: string
options:
- identifier: Replace
label: Replace Name
type: string
javascript: |
const SearchName = encodeURIComponent(popclip.options.Search)
const ReplaceName = encodeURIComponent(popclip.options.Replace)
popclip.pasteText(popclip.input.text.replace(/\{SearchName}/g, ‘{ReplaceName}'))
description: Searches and replaces string