So, I'm requesting a command-line search mechanism. The usage would be:
prpgrep <substring> <path-to-dat-folder>
[Note for non-Unix people: 'grep' is a command used to search for a substring in a collection of files.]
The utility would loop through each PRP file, expand each object into an internal XML buffer (like it does in PageEditor) and report on any case-insensitive matching substring. For example, suppose I issue the command:
prpgrep kEnable "c:\Program Files\URU\dat"
It would report each usage of kEnable by listing the PRP file name, PRP object type, name and the text of the line, such as:
Kadish_District_kdshPillars.prp: ResponderModifier: cRespSecretDoorClose: <hsBitVector>kEnable </hsBitVector>
It may take a while to execute, but it would be much faster than doing it manually. I think it would be incredibly useful and save a bunch of time.
What do you think? Is it do-able?
For extra credit, the path argument could be made optional. The first time the command is used, the user would have to provide the path. prpgrep would store it somewhere (e.g. Windows registry). The next time the command is used, if the path argument is skipped, it just retrieves the stored value.