WILDFILW.INI file

Wildfilew.vdm macro saves it's settings in file wildfilw.ini in user-mac directory. Most of the settings can be chosen interactively from within the macro dialogs (with the exception of the comment delimiter strings, see below), but you can edit the file manually if you wish.

The filename wildfilw.ini is used by default. However, you can choose any name and path when calling the macro, see Starting Wildfilew.vdm. You can then use several .ini files for different purposes, perhaps called from your User menu.

The settings are stored in the .ini file ascii text format, one setting per line. The line begins with keyword, followed by '=' character, followed by the value (numeric or text). The keyword must be at the very beginning of the line. There must be no spaces around '=' character.

You can add comments by starting a line with //. Inline comments are not allowed. Empty lines can be added. However, when Wildfilew is run, the file is overwritten and the comments will be removed (unless you called Wildfilew at the label read_ini, see "Starting Wildfilew.vdm".)

If any of the keywords is missing from the .ini file, default value is used and then saved to .ini file. If .ini file does not exist, it is created after running Wildfilew.vdm. (If you click [Cancel] button, the settings are not saved.)

The following keywords are recognized:

Options selected from Options dialog

opt_startup
Start-up dialog: 1 = search, 2 = last used.
opt_dialog
Default dialog type: 1 = simple, 2 = full, 0 = no dialogs (batch mode).
opt_path
Default directory: 1 = cur_dir, 2 = current file's dir, 3 = last used by Wildfilew.
opt_strings
Default search/replace strings: 1 = none, 2 = current, 3 = last used by Wildfilew.
opt_options
Default search options: 1 = config settings, 2 = last used by Wildfilew.

Saved settings from dialogs

operation
Last operation performed: 'S'=Search, 'R'=Replace, 'C'=Command, 'M'=Macro
(The corresponding dialog will be opened by default if opt_startup=2.)
files
Filenames / filters entered in Files field.
path
Default path entered in Directory field.
search
Search string
replace
Replace string
sr_options
Search options (SIMPLE, REGEXP, MAX, CASE, WORD)
skip_comments
Skip comments option (0/1)
subdir
Search subdirectories tickbox (0/1)
display_as
"Display matched lines as" setting for Search:
1=Visual, 2=List with filenames, 3=Extract w/o filenames, 4=List filenames only
confirm
"Display matched lines as" setting for Replace:
1=Confirm 2=List with filenames
command
Command sequence for 'C' operation
macro
Pathname of macro for 'M' operation
read-only
Read-only flag for 'C' or 'M' operation
more
Pause after screenful (-MORE-) for 'C' or 'M' operation

Comment delimiters

In Search and Search/Replace dialogs, there is an option to skip comments. By default, Wildfilew.vdm recognizes C/C++ comments (although the same comment delimiters are used in several other languages such as Java and Vedit macro language). However, it is possible to change the comment delimiters by editing the .ini file. You can then save the ini file with different name and select that file when calling wildfilew.vdm.

linecmt
Line comment string
comment
Block comment begin and end strings, enclosed in pattern matching code |{}.
If one of the comment types (line comment or block comment) is not used, leave the string empty (i.e. nothing after the '=' character except end of line).

Related topics:

Starting Wildfilew.vdm
Wildfile - Multi file processing