Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
I don't know about your distribution, but on Xandros,
you can pops up the "control center" move to
"General Setting" -> "Shortcut keys" and fiddle around.
Why don't you play around with your "control center"
and see if there are "shortcut keys"?
Thanks for answer. I use FC3 and Gnome. I can do that. I read a tutorial for Gnome, and I can execute whatever bash script I want when I press a combination of keys. The problem is how can I make that script insert some text in the current edited document of Eclipse (for example) and leave my cursor where I need.
What foo_bar_foo means is that he can't imagine that one program can write in the buffer of another program (neither can I, by the way).
Don't forget that the shortcuts that you use in homesite, are controlled by homesite and not by the OS (windows). The same will apply to eclipse.
However, there is some hope. In the eclipse documentation (follow links on http://www.eclipse.org/documentation/main.html) you can read that you can add external editors that are displayed in the workbench. That might be the solution for you. Both vi and emacs support macros that can do the tricks for you.
Yes you are right about the buffer I guess...
I tried with external editors for Eclipse. It doesn't work. They are not displayed in the workbench, they do not have the features of Eclipse/phpEditor syntax checking, coloring, breakpoints for debug etc. etc. So it's not Eclipse, it's that editor that I'm using.
I am convinced that there are a lot of great editors, but Eclipse I'll use also for java programming it is specialized in java programming, and the php plugin does my work in php much easier... so it's a php IDE also, I can't just use non-specialized editor. One example is I don't have debug, syntax checking or functions auto-complete.
You made me think my problem is more related to Eclipse and its code rather than Linux.
I'm just sad that this is the last unresolved problem on my list for migrating to Linux solved the others
Just need to keep my productivity.
I think I'll just try some Eclipse forums . Thanks for help.
Quote:
Originally posted by Wim Sturkenboom What foo_bar_foo means is that he can't imagine that one program can write in the buffer of another program (neither can I, by the way).
Don't forget that the shortcuts that you use in homesite, are controlled by homesite and not by the OS (windows). The same will apply to eclipse.
However, there is some hope. In the eclipse documentation (follow links on http://www.eclipse.org/documentation/main.html) you can read that you can add external editors that are displayed in the workbench. That might be the solution for you. Both vi and emacs support macros that can do the tricks for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.