Skip to content
Doug P edited this page Nov 16, 2023 · 1 revision

There are three confirmation dialogs for exiting dnGrep; two are optional, and one is not. The intention of these confirmations to prevent the 'oh no' moment when you've done something you want undo but cannot.

The first confirmation is when the replace in files is running and you exit from dnGrep. This dialog will block the exit because this would leave the replace partially done, probably corrupting files, and with no way to undo the changes. You should either let the replace run to completion or cancel the replace before exiting. Note you can undo the replace before you exit, but not after restarting dnGrep.

The second confirmation is when a Script is running, and you exit from dnGrep. This too, can leave files in an unknown state. The default for this confirmation is off, and you can enable/disable it here.

The third confirmation is when a Search has been running for a long time, or the latest Search took a long time to complete, and you exit from dnGrep. This is intended to prevent losing results that will take a long time to re-run if you accidentally exit before you are finished with them. The default duration for a long search is 10 minutes, but you can adjust that up or down. The default for this confirmation is also off.