Is It PossibleTo Assign Shortcuts Keys For Code Template

Hi, Is it possible to assign shortcut keys for custom code template? Or is it possible to assign shortcut keys for commonly used unicode characters? It nice that oxygen has the character map dialog so that insertion of unicode characters can be easy, but it would really be nice if I can assign shortcut keys to commonly type/inserted unicode characters. I workaround that I did was assign code templates for these characters but the feedback that I got from other possible user of the editor is that it would be better if shortcut keys can be assigned. Also, when I assigned a code template like this: "ó${caret}", when I execute it using the ctrl+space the caret position moves back to the start of the character, I was assuming that it would be at the end of the character. Is this a bug? Thanks, Jeff -- *Jeferson L. Sese* Asiatype Incorporated Suite 114, Columbia Tower, Ortigas Ave., Greenhills, Mandaluyong City 1550 Philippines

Hello, Inserting a character easier than opening the Character Map dialog and finding the character for each insertion was requested before on this list: http://www.oxygenxml.com/pipermail/oxygen-user/2007-May/001125.html A solution is a custom code template which inserts the character at cursor position. Defining a custom code template is very easy but in the current version of oXygen a shortcut cannot be assigned to a code template. We have this issue logged on our JIRA. I defined a code template with the content ó${caret} and I used it to insert the ó character in an XML file. The caret was positioned after the inserted character. Please specify the type of editor associated with your code template and the platform and the version of Java virtual machine used to run oXygen. The JVM version is displayed in Help -> About -> System properties -> java.vm.version. Regards, Sorin Jeff Sese wrote:
Hi,
Is it possible to assign shortcut keys for custom code template? Or is it possible to assign shortcut keys for commonly used unicode characters?
It nice that oxygen has the character map dialog so that insertion of unicode characters can be easy, but it would really be nice if I can assign shortcut keys to commonly type/inserted unicode characters. I workaround that I did was assign code templates for these characters but the feedback that I got from other possible user of the editor is that it would be better if shortcut keys can be assigned.
Also, when I assigned a code template like this: "ó${caret}", when I execute it using the ctrl+space the caret position moves back to the start of the character, I was assuming that it would be at the end of the character. Is this a bug?
Thanks, Jeff

I defined a code template with the content
ó${caret}
and I used it to insert the ó character in an XML file. The caret was positioned after the inserted character. Please specify the type of editor associated with your code template and the platform and the version of Java virtual machine used to run oXygen. The JVM version is displayed in Help -> About -> System properties -> java.vm.version. I got this fixed already, it seems that I have to load the current file in order to apply the changes that I have made in the code template. Clicking the apply button in the preferences dialog does not automatically apply the changes that I have made. For example, if i created a ${caret}ó template and used it then after a while change it to ó${caret}, then I have to reload the file i'm editing in order to apply
Hi, Sorin Ristache wrote: the changes. I have oXygen 8.2 stand alone (trial version) in Windows XP. JVM is 1.6.0_01-b06. Thanks, Jeff

Hello, I see that in oXygen 8.2 the existing editors do not see the changes applied to the code templates so you have to close the file and reopen it in a new editor panel. In the current development stream the problem is fixed. Probably some changes in the code for applying the user preferences fixed the problem. In the next version of oXygen the changes of the code templates will work correctly. Regards, Sorin Jeff Sese wrote:
Hi,
I defined a code template with the content
ó${caret}
and I used it to insert the ó character in an XML file. The caret was positioned after the inserted character. Please specify the type of editor associated with your code template and the platform and the version of Java virtual machine used to run oXygen. The JVM version is displayed in Help -> About -> System properties -> java.vm.version. I got this fixed already, it seems that I have to load the current file in order to apply the changes that I have made in the code template. Clicking the apply button in the preferences dialog does not automatically apply the changes that I have made. For example, if i created a ${caret}ó template and used it then after a while change it to ó${caret}, then I have to reload the file i'm editing in order to apply
Sorin Ristache wrote: the changes.
I have oXygen 8.2 stand alone (trial version) in Windows XP. JVM is 1.6.0_01-b06.
Thanks,
Jeff _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Jeff Sese
-
Sorin Ristache