Auto completion

Discuss Multi-Edit related topics and new feature requests here. Please not post support requests or bug reports! Non-Multi-Edit questions, discussion goes in General Chat!

Moderator: Moderators

Auto completion

Postby AbqBill on Thu Jan 03, 2008 3:49 pm

Hi all,

I like the complete macro that comes with Multi-Edit, but I feel like it could be even more useful. Right now, it only scans for completion keywords in the current file. I think it would be cool if this could be extended to list keywords from the current language in a pop-up list.

Thanks,

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Postby deleyd on Tue Jan 08, 2008 10:01 pm

There is an enhancement at

http://www.multiedit.com/forums/viewtop ... =1443#1443

(I haven't had time to play with this, so I'm not sure exactly what it does.)
User avatar
deleyd
Developer
 
Posts: 1023
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA

Postby AbqBill on Wed Jan 09, 2008 3:38 pm

Hi deleyd,

The CompWord.s macro posted in that thread is definitely a step in the right direction, but it is similar to the bundled Complete macro in that it only expands keywords in the current file.

What I'm suggesting is that ME have a bundled macro that can not only expand words in the current file, but words listed as keywords for the current language as well.

I'm new to Multi-Edit, so I don't know the CMac language well enough to do it myself. This is a feature that's built into UltraEdit, and it seems logical and useful, so I thought Multi-Edit should be able to do it also.

Thanks!

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Postby DanHughes on Wed Jan 09, 2008 4:25 pm

If you haven't already try enabling the TipWin feature of Multi-Edit (Tools | Customize | TipWin). This might give you some of what you are wanting using the tags files for the supported languages.
Dan Hughes
DanHughes
Registered User
 
Posts: 600
Joined: Mon Jun 30, 2003 4:29 am
Location: Indiana

Postby AbqBill on Wed Jan 09, 2008 7:17 pm

Hi Dan,

That's not quite the same thing, because 1) it is limited to C/C++/Pascal/Delphi/Java and 2) it requires tags. A general complete macro would be useful for any language if it could list keywords from the current language.

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Postby Michal Vodicka on Wed Jan 09, 2008 7:52 pm

AbqBill wrote:A general complete macro would be useful for any language if it could list keywords from the current language.


I don't think so. Language keywords are usually used repeatedly so you write it once and then current completion works. Also, they're usually shorter than identifiers and developers should remember them.

I don't say there would be no use for it but I see symbols and prototypes much more important. Automatic function templates were just side effect of other development, originally. I added it because it was easy and didn't expect to use it myself. Now I use it all the time. But I never missed language keywords expansion.

You're right TipWin and automatic function templates functionality is limited to few languages, however important. It is possible to add support for more languages in the future.
Michal Vodicka
Developer
 
Posts: 425
Joined: Fri Jul 25, 2003 8:16 pm
Location: Prague, Czech Republic

Postby AbqBill on Wed Jan 09, 2008 9:18 pm

I don't think so.

I have to disagree here. Keyword expansion can aid in the "discoverability" of a language, particularly languages you're not as familiar with, or when you work with several languages and you'd like to see available keywords in the current language. This is particularly helpful when using scripting languages (Perl, Python, PowerShell, JavaScript, etc.).

HTH,

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Postby Michal Vodicka on Wed Jan 09, 2008 11:02 pm

Hmm, completion saves typing, it isn't intended to help language learning. Honestly, I can't imagine working this way. Until I know a new language, I have always opened help and search for desired functionality.

But OK, there are other ways of work than mine. What you want should be possible to implement using syntax highlighting files which already contain keywords.
Michal Vodicka
Developer
 
Posts: 425
Joined: Fri Jul 25, 2003 8:16 pm
Location: Prague, Czech Republic

Postby AbqBill on Wed Jan 09, 2008 11:19 pm

Hmm, completion saves typing, it isn't intended to help language learning.

Hi Michael,

I think it facilitates discoverability rather than learning. In my mind, the concepts are distinct.

What you want should be possible to implement using syntax highlighting files which already contain keywords.

Yes. I'm new to Multi-Edit and I don't know CMac (yet). I was thinking that CMac gurus can get this implemented more quickly than I can.

Regards,

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Postby Michal Vodicka on Wed Jan 09, 2008 11:37 pm

AbqBill wrote:Yes. I'm new to Multi-Edit and I don't know CMac (yet). I was thinking that CMac gurus can get this implemented more quickly than I can.


Probably yes if one starts implementation in the same moment as you :) If you plan to learn CMAC (which isn't hard is you know C or Pascal), this macro could be a good start and it is usually faster to implement simple things yourself than waiting until somebody else decides to do it.
Michal Vodicka
Developer
 
Posts: 425
Joined: Fri Jul 25, 2003 8:16 pm
Location: Prague, Czech Republic

Postby AbqBill on Thu Jan 10, 2008 4:43 am

Agreed, it doesn't look that difficult. Perhaps a handy macro could get rolled into the Multi-Edit distribution and bound to Ctrl+Spacebar (like in UltraEdit or Visual Studio).

Regards,

Bill
AbqBill
Registered User
 
Posts: 12
Joined: Mon Dec 24, 2007 5:40 am

Introduction to CMAC 12 4 DIALOG BOXES DlgExecute

Postby BradA on Sat Apr 07, 2012 2:40 am

Hello JauntePE users,

I have read the Vista and Jauntpe thread again and again but i am missing what to change that will make the open/save dialogs to show in Vista, what i find more strange is in Windows 7 the dialog boxes do show up.

Made three portables Firefox,systracer,utorrent and in Vista the dialog boxes do not show like a quick flicker then nothing.

If anyone can shed some light on this, it will be great
BradA
Registered User
 
Posts: 9
Joined: Sun Apr 01, 2012 9:05 am

Re: Auto completion

Postby deleyd on Sat Apr 07, 2012 5:44 am

I'm not familar with JauntePE. It looks like something that "attempts to convert conventional applications into portable applications".

There is a portable version of Multi-Edit: Mobile Multi-Edit (moME) if that's what you want. It comes on a USB memory stick.

And there's an attempt to port Multi-Edit to Linux using CodeWeaver's CrossOver. The trick was to get rid of tabbed dialogs, so I removed them, split them into separate dialogs. That would be here:

EDX 4.36 LNX 3.00Alpha Smooth Scroll, Scroll Margins, Linux!
viewtopic.php?f=9&t=489&start=15&hilit=linux

Linux is just an option, usually not used (unless you're on Linux! :D ).
User avatar
deleyd
Developer
 
Posts: 1023
Joined: Tue Jul 29, 2003 4:27 pm
Location: Santa Barbara, CA


Return to Suggestions

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron