View Single Post
Old 03-28-2022, 11:14 AM   #84
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,962
Karma: 6361444
Join Date: Nov 2009
Device: many
Show Dry-Run for any Replace or Replace All

Would anyone here find the following new feature for Sigil useful:

Add a "dry-run" mode for Find and Replace that would show the before and after results from a Regex Replace/Replace-All in a big table but not actually make any changes at all (or possibly wait until user says okay?). Maybe a simple Ctrl-Click on the Replace button to do the dry-run.

Imagine a table with two columns, the first showing a short context (3 to 5 words on each side of a match) for each match, and the second column showing the same short context with the replacement made. But no actual replacements are done ( or until the user okays it).

The number of words of context could be a user preference.

Effectively this would be a faster easier way of making a Checkpoint, doing the ReplaceAll, and comparing using File level highlighted diffs, and deciding whether to keep or revert to the Checkpoint all without Checkpointing at all.

Would this be a generally useful addition?
KevinH is offline   Reply With Quote