LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 02-03-2005, 01:51 PM   #1
Horos23
LQ Newbie
 
Registered: Jan 2005
Posts: 27

Rep: Reputation: 15
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.
 
Old 02-03-2005, 03:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Shortcut Keys dudeman41465 Linux - Software 4 10-06-2005 11:16 AM
Redhat Linux GUI Shortcut keys formohan Linux - Newbie 3 04-11-2005 12:37 AM
Global shortcut keys Haiyadragon Mandriva 0 07-01-2004 09:05 AM
Inserting Text wildcat22 Linux - General 8 04-25-2004 07:51 AM
making shortcut keys evian Linux - General 4 04-08-2003 08:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration