hiohiohio / omegat-plugin-externalfinder

ExternalFinder plugin for OmegaT
https://hiohiohio.github.io/
Apache License 2.0
7 stars 3 forks source link

Add regex mask support for items in finder.xml #8

Open kosivantsov opened 8 years ago

kosivantsov commented 8 years ago

It would be cool if there was a way to have different popup items based on the contents of the selection. Something of this sort:

<item>
    <name>Unit Converter</name>
    <mask>\d+(.\d+)?\s+(miles?|pounds?|°F)</mask>
    <command target="both" encoding="default">SuperConvertUtility|{target}</command>
</item> 

which would only create the "Unit Converter" popup item for a selection that contains a number, a space and one of these: mile, miles, pound, pounds, °F

If no mask is specified, the item is created for any selection.

hiohiohio commented 7 years ago

Hi @kosivantsov

Thank you for the request and sorry for late replying. I am currently not active for this plugin. So, can you please request Aaron since he may integrate this into OmegaT.