On 2/19/2008 7:48:22 AM, Christian Ziemski wrote:
>Why not simply fill an appropriate Reg_Set(116, "...." ) into
>/vedit/file-cfg/*.CFT configuration file for now?
It does not work. The event macro would be loaded only when you open a file, and then this same double-click event macro would be used for all the files currently open.
And if you save file type specific configuration, any manual changes will be overwritten.
Currently, I check the filename extension inside the event macro and perform different operations when necessary.
>Anyway: Even if the event macro is used
>filetype specific, it would be good to
>have a global one as well.
I was thinking that when no double-click macro has been specified, the internal double click operation would be used (i.e. highlight the word).
But of course the event macro can do more complex operations, too. For example, my current search116.vdm can highlight a word, line or chapter.
You don't need multiple text registers. It can be done inside the main event macro: if the event macro filename has been given, call it, else perform the global operation.