Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kosivantsov opened this issue May 7, 2016 · 1 comment
Open

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

kosivantsov opened this issue May 7, 2016 · 1 comment

Comments

@kosivantsov
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants