daddel80 / notepadpp-multireplace

MultiReplace is a plugin for Notepad++ enabling multi-string replacement, allowing list saving and loading. It provides CSV syntax highlighting and enabling precise column targeting. Additionally, it introduces conditional and computational operations within the replacement string.
GNU General Public License v2.0
20 stars 7 forks source link

Suggestion: Reverse Search / Replace #57

Open geeeethub opened 3 hours ago

geeeethub commented 3 hours ago

This is a fantastic tool, thank you for making this available.

A quick suggestion would be to add a "Reverse Search / Replace" button or similar. It would take everything the initial search and replace did, but reverse it back to normal. This would make the tool a powerful data anonymizer / de-anonymizer for LLM use.

daddel80 commented 2 hours ago

Thanks, I'm glad you find the tool useful! You can actually achieve this by swapping the 'Find' and 'Replace' columns in the saved CSV list. This gives you flexibility without needing a dedicated reverse function, which would come with too many limitations, especially with regex. However, I’m planning an extension of the Lua functionality at the beginning of next year through the 'Use Variables' feature. This will allow you to incorporate lookup files via a single replace entry, making operations like these easier. These lookup files will also be helpful for standardizing data.

By the way, I just released version 4, which can be downloaded here and will be included in the next Notepad++ release