Autocomplete/Inline templates

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Autocomplete/Inline templates

Postby mastabog » Thu Jun 02, 2005 8:11 pm

Hello,

UE32 is a wonderful product and i really would like to switch to it from the editors that I use now. However I couldn't find a feature (that to me is critical) that inserts templates in an autocomplete/inline fashion.

To be more clear, i would like to be able to type words like "function" then press a key combination, which is always the same, say CTRL+Enter and then get the template inserted.

In case UE32 already does this and i missed it then I'm sorry, but in case it is not able to do this then my opinion is you should reeally implement it as it is badly needed. It would get rid of the annoying 10+10 keyboard shortcuts, there wouldn't be a limit to the number of templates and coders won't have to remember which key combination is assigned to which template. Most coders I know, me included, use templates in this way (it's alos a lot faster as you mostly type instead of moving around the keyboard pressing alt-+shift+9) and probably that's why they don't use UE32 which is a pitty.

Thanks a lot
User avatar
mastabog
Newbie
 
Posts: 9
Joined: Thu Apr 14, 2005 11:00 pm

Re: Autocomplete templates

Postby tatwo » Fri Jun 03, 2005 7:07 am

see "Auto Completion" in Help index ..

and sample auto-completion files here ..

http://www.ultraedit.com/downloads/extr ... tocomplete
tatwo
 

Re: Autocomplete templates

Postby mastabog » Fri Jun 03, 2005 8:39 am

I was talking about template structures. I know about the auto-completion, invoked by ctrl+space, but unfortunately that is only for one line or one word completion only and not for template structures like:

Code: Select all
switch (^)
{
  case :
    break;
  case :
    break;
  default:
}


Right now in UE32 i would have to assign that template to a slot of 1-20 and then assign a keyb shortcut for it, say alt-shift-1. I am limited to only 20 (because any coder hates to keep using the mouse to go into menus) and will have to remember and press ugly and different shortcuts for each asigned template.

Almost every decent editor out there can do template insertion based on a typed word then a single keyb shortcut. For the example above i would type "switch" then press CTRL+Enter and get the template inserted, the cursor positioned between the paranthesis etc. Same goes for "if" then ctrl+enter and so on. This way you are not limited to 20 templates, you have only 1 keyb-shortcut easy to remember and handy and coding would be much faster since you just keep typing.

Honestly, I'm surprised that this isn't already implemented because theer are so many other features that are simply excelent. Any chance of seeing this in a future release?
User avatar
mastabog
Newbie
 
Posts: 9
Joined: Thu Apr 14, 2005 11:00 pm

Re: Autocomplete templates

Postby tatwo » Fri Jun 03, 2005 10:08 am

I understand now .. this feature is in EditPlus (and other editors as you point out).

In fact I'm comparing UltraEdit with EditPlus features .. both editors can be extended by customised User Tools ..

So in your case a User Tool might be coded to copy into clipboard and pass the keyword you have just typed - find a match of keyword fragment against a library of snippets - and then complete the auto-completion (if there is a match).

All in theory .. but I'm writing similar User Tools for parsing text.

The User Tool would trigger on a single key combination.

But again there might be an easier way .. I'm quite new to UltraEdit.

I'm trying to figure out if a specified file can be directed to the Output Window .. through command line argument (as in EditPlus).
tatwo
 

Re: Autocomplete templates

Postby mastabog » Fri Jun 03, 2005 2:14 pm

EditPlus is one of the editors I was refering to that has that feature. A user tool coding could not really do the trick (what about the placeholders and cursor position?) so a typed word + unique keyb shortcut is wht is needed.

I have to admit that this is the only reason I am not going to use UE32 and stick with my other editors (like EditPlus, jEdit and others). I hope the UE32 author can see the importance of this as it will atracts more coders to UE32.
User avatar
mastabog
Newbie
 
Posts: 9
Joined: Thu Apr 14, 2005 11:00 pm

Re: Autocomplete templates

Postby feng » Mon Jun 06, 2005 4:45 pm

a good feature to request
User avatar
feng
Basic User
Basic User
 
Posts: 11
Joined: Tue Aug 03, 2004 11:00 pm

Re: Autocomplete templates

Postby mastabog » Mon Jun 06, 2005 5:29 pm

the more people post and agree the better the chances that it'll get implemented ... if you get my drift :D
User avatar
mastabog
Newbie
 
Posts: 9
Joined: Thu Apr 14, 2005 11:00 pm

Re: Autocomplete templates

Postby kinook » Mon Jun 13, 2005 9:45 am

This would be a very useful feature.
User avatar
kinook
Newbie
 
Posts: 2
Joined: Mon May 02, 2005 11:00 pm

Re: Autocomplete templates

Postby sysdev » Wed Jun 22, 2005 4:41 pm

This would be a fantastic feature... Emacs has it too, and JBuilder for Java.
User avatar
sysdev
Newbie
 
Posts: 3
Joined: Fri Sep 02, 2005 11:00 pm

Re: Autocomplete templates

Postby PaoloFCantoni » Wed Jun 22, 2005 5:25 pm

ALWAYS submit a formal suggestion to the support email address. Link to this discussion if you like. That way IDM have a formal request...

Cheerz,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Autocomplete templates

Postby robswift » Thu Jun 30, 2005 2:30 am

I noted everyones comments about this - I too love the Auto-Completion templates you can set up in EditPlus - does IDM have any plans to build this into UltraEdit? I really don't want to pay for EditPlus aswell as UE and then later find out the feature has been added to UE...!
User avatar
robswift
Newbie
 
Posts: 1
Joined: Sun Sep 18, 2005 11:00 pm

Re: Autocomplete templates

Postby Zer0 » Thu Jun 30, 2005 9:56 pm

The Zeus editor also has this feature (http://www.zeusedit.com).

This feature is great for things like for, if and while constructs.
Zer0
 

Re: Autocomplete templates

Postby Bego » Tue Jul 05, 2005 9:12 am

You also can take a third party freeware :D tool that does the job in EVERY Windows application, like "shortcut" or "autohotkey".
I use shortcut it for many code-snippets, e.g.:

typing #c ---> --05.07.2005 Bego

or #crtab ---> pops up window, and I type the table-name TEST.
--->
prompt Tabelle TEST
CREATE TABLE TEST (
F1 NUMBER(4) NOT NULL,
F2 YYY.ZZZ%type)
storage ( initial 1M next 512K pctincrease 0);

See http://www.typer.de or http://www.autohotkey.com

Hope I got you right, Bego :wink:
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: Autocomplete templates

Postby nathanv » Fri Jul 29, 2005 11:55 am

I too am contemplating the switch from edit plus and would like to see this implemented

thanks
User avatar
nathanv
Newbie
 
Posts: 1
Joined: Thu Jul 28, 2005 11:00 pm

Re: Autocomplete templates

Postby palou » Tue Aug 02, 2005 5:59 am

Hi all,

I agree with you for the request.

Personally, I resolved the problem by using macros which recignize some of my classic structures (if, case, etc.) then complete them. But it's not perfect and a bit slow.
You can take a look at the thread How to auto complete "if...end if" ? in the Macros forum.

Regards from Switzerland.
User avatar
palou
Basic User
Basic User
 
Posts: 46
Joined: Fri Dec 17, 2004 12:00 am
Location: Geneva / Switzerland

Next

Return to UltraEdit General Discussion