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

Multiple Templates #1

Open
ercancem opened this issue Dec 3, 2020 · 6 comments
Open

Multiple Templates #1

ercancem opened this issue Dec 3, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@ercancem
Copy link

ercancem commented Dec 3, 2020

Is it possible to define multiple templates?

@pgilfernandez
Copy link
Owner

No, it's not possible yet.
It would need a system to save, load, delete... that is not easy to develop.

By now, I'm out of time... it would be nice that someone with more time than me could develop that feature.

@pgilfernandez pgilfernandez added the enhancement New feature or request label Dec 3, 2020
@ercancem
Copy link
Author

ercancem commented Dec 3, 2020

The rules are case sensitive; is it possible to turn off that?

@pgilfernandez
Copy link
Owner

Yes, you can disable it in the package settings:

settings

@earendil1
Copy link

Hi,
I have around 50 find and replace strings which I would like to use singularly. Is there a way to choose the search and replace 'units' separately and not all at once as this plugin seems to work?
Thanks!

@pgilfernandez
Copy link
Owner

Umm, I think I haven't understood what do you want to do... could you drop me an example so that I can clearly see it?

Thanks

@earendil1
Copy link

earendil1 commented Aug 31, 2022

Hi, yes of course! Here is a sample of three Regex:

[Name] ALL Full stops[All]
Find
[Parameters] MsgOff Regular
[Replace]…
[Parameters] MsgOff Regular
[Command] ReplaceAll

[Name] 1EN NoAltr --abc--, —abc—, — abc —, -> [All]
Find(—|–{1,}|-{2,})(\s*)
[Parameters] MsgOff Regular
[Replace]⁠—⁠
[Parameters] MsgOff Regular
[Command] ReplaceAll

[Name] 2EN NoAltr - abc -, -> [All]
Find(-{1,})(\s+)
[Parameters] MsgOff Regular
[Replace]⁠—⁠
[Parameters] MsgOff Regular
[Command] ReplaceAll

In your syntax they should be rendered as follows i guess:

(\s*)(—|–{1,}|-{2,})(\s*) => ⁠—⁠
(\s+)(-{1,})(\s+) => ⁠—⁠
etc.

What I would like is to

  1. Be able to access the file in order to paste there all my transformed regex
  2. Have a title for them if possible
  3. Be able to choose which one I execute at any given time and
  4. Replace, if I choose the found instances, not automatically replace them all.

I realize though that this looks like a lot of work. Here is what the find and replace dialog box of Altsearch Replace in Libreoffice looks like:

image

thanks!

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

No branches or pull requests

3 participants