/save

Usage:

/SAVE [-a] file [macro-options] [name] [= body]


Saves specified macros to file. The macro-options are the same as those in /list command; see "/list" for details. Invisible macros will not be saved unless "-i" is specified.

If "-a" is specified, macros will be appended to file. Otherwise, the macros will overwrite any existing contents of file.

The return value of /save is the number of the last macro listed, or 0 if no macros were listed (because of error or none matched the specified options).

The standard macro library also defines the commands /savedef, /savebind, /savehilite, /savegag, /savetrig, and /savehook. These macros will save macros of the appropriate type to a file. If no file name is specified, a default file name will be used.

I personally find it easier to write my macros with an editor and then /load them in tf, instead of writing them in tf and /save'ing them to a file. Use whatever works best for you.

Note that when tf starts, it does not automatically read files created with any of the /save commands. To make it do so, add the corresponding /load command to your .tfrc file.

See: macros, patterns, attributes, library, /def, /list, /load, /saveworld


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997 Ken Keys