Shortcut keys for inserting text/code in Linux
Hello,
If you don't have time, read the last pharagraph. There is my question.
I am a web developer, I used for 3 years now Homesite 5. I used many shortcut combinations for inserting little pieces of needed html/php code, to be MUCH MORE productive. For instance:
Ctrl+Enter - </ br>
Ctrl+I - <img src='img/' alt="" border="">
Ctrl + M - <tr><td></td></tr>
etc....
I am planning carrefuly my migration to Linux (FC3), and I will switch for html/php developing to Eclipse , with the PhpEclipse plugin, which has debug, variable/function completion, templates, etc.
I didn't find any way, in Eclipse or any plugin for Eclipse to insert the text/code I want at a shortcut key, and the cursor will remain where I want. I know it is possible with templates, but I have to press some extra keys (Ctrl + Space, + first letters of template).
My question is not if this is possible in Eclipse, cause it's not. I would have posted in an Eclipse forum.
I know in Gnome it is possible to add custom shortcut keys to execute your custom scripts. How can I make a script to insert a code in the current document I am editing (independent of my application, or if it's not possible - just for Eclipse), and leave my cursor where I need.
So basically, I need a trick in Linux for making combination of keys (like Ctrl+Enter) for inserting custom text, and leave the cursor where I need.
Thank you.
Stefan.
|