Feature idea: Triggering popclip highlights the first extension with the corresponding regex match

I have the following extension:

#popclip
name: Remove Wikilinks
regex: \[\[(.*?)\]\]
icon: strike [[
javascript: popclip.pasteText(popclip.input.text.replace(/\[\[(?:[^|\]]*\|)?([^\]]+)\]\]/g, '$1'))
description: Removes wikilinks
stay visible: true

What about the following behaviour: When the regex is matched, the first extension using this regex is highlighted on the PopClip bar (and thus can be executed faster) by pressing return.

1 Like

+1 for this feature.

1 Like

Very interesting suggestion, thanks! It’s rare after all these years that I get a new one that I haven’t though of.

2 Likes