Well, you can write a macro which changes the template directory specification in uedit32.ini if the INI is always in the same directory. But this hack in the INI does not have any effect until you restart UltraEdit.
Maybe instead of templates you could use
tags.
Do you know the tag feature of UltraEdit/UEStudio?
Tags are similar to templates. They are not so powerful than templates. But they have an equivalent for a single usage of [$replace$] - enclose a selected text with a start and end tag (=text) or simply insert the text (tags) if nothing is selected. The cursor is also automatically placed between a start and end tag when inserting a tag. Multi-line tags and tags with tabs are also possible.
Disadvantages of tags in comparison to templates:- Tags cannot be assigned to hot keys.
- There are no special codes to insert a date/time or a file name in a customizable way like it is possible with templates.
- The cursor is automatically placed either between start and end tag or after the start tag if there is no end tag. It's not possible to specify where exactly the cursor should be after inserting the text.
- The tags are not available via a menu, only via the Tag List window.
- No equivalent for [$REPLACE$] code of templates.
- Tags from a taglist file cannot be used in macros like templates.
Advantages of tags in comparison to templates:- No limit (as far as I know).
- Can be grouped for different languages, projects or users.
- You can have as many taglist files as you want with names you like and can easily change it via the context menu of the tag list window.
- A taglist file which holds the tags is a normal text file and not a binary file like the storage file for templates. So they can be easily shared, modified or translated without UltraEdit and its special dialogs for editing tags or templates.
- Macros can be used to easily modify the content of a taglist file. However, the modifications on an already loaded taglist file by a macro will be detected by UE only when restarting UE or reload the file via the Modify Tags dialog.
For more about templates and tags see
Alternative to this BBS macro where Paolo and I are currently creating a taglist file for BBCode and the infos I have posted in my first post at this thread. See also the pages linked there.