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

Would it be possible to call out to a shell-script to process the match into the replacement? #258

Open
OwenAR opened this issue Oct 26, 2018 · 2 comments

Comments

@OwenAR
Copy link

OwenAR commented Oct 26, 2018

Say you wanted to do something beyond the powers of regexes,
eg currency conversion.

If you could like match this:
(£|gbp)\s*([\d.,]+)
and then have the replacement be like:
\CALLSCRIPT "scriptname" \1 \2
you could have the script do the logic of doing the conversion,
then pass back the string it returns...

Is that a feature already? (I just found this addon.)
If not, does it seem feasible to implement?

@Woundorf
Copy link
Owner

It's not implemented but I think it would be possible with native messaging. I will look into it if I find the time, but don't expect it soon.

@Woundorf
Copy link
Owner

This is related with #214.

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

No branches or pull requests

2 participants