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).

4 Likes

+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.

6 Likes

+1 for this feature.

I’m hoping for this soon as well. Half the battle is having too many wonderful extensions but not needing all of them at any given moment.

Maybe an option to rank extensions based on match as well. #1 would be the first extension that shows with the next extension being #2 for any matches to selected text.

Just a thought.

1 Like