tab completion

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
ddaniels
Posts: 6
Joined: Thu Aug 22, 2013 11:39 am

tab completion

Post by ddaniels »

LiveCode is not my first IDE but I do believe it is the first I've come across that does not have tab completion!

Please, tab completion! Please!
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: tab completion

Post by Klaus »

Pardon my ignorance, what is "tab completion"?
MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: tab completion

Post by MarcVanCauwenberghe »

You probably mean typing in a few letters, seeing a drop down menu of possible keywords and pressing TAB to complete the word your typing?

If so, at this moment this is not available in the IDE. It probably will be in the new IDE that is being made.

Marc
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: tab completion

Post by Klaus »

Ah, thanks/bedankt! :D
MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: tab completion

Post by MarcVanCauwenberghe »

Your welcome/bitte schön

Marc
mariasam
Posts: 1
Joined: Wed Sep 25, 2013 8:36 am

Re: tab completion

Post by mariasam »

I seem to run into problems when I have to escape special characters - that is what I would like to see some livecode examples of - the examples that are in the dictionary today are very basic. I know...I should probably write my regex in a text file and merge it into a variable and use that, but it would be nice to have a couple of examples that go beyond using a single word in the search.
maria
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: tab completion

Post by dunbarx »

Maria.

It would be a terrific exercise to write a gadget that does what you asked for. This is not hard to do at all. Assuming there are no spelling errors (which is another level of difficulty) you can check the current entry, char by char, on "keydown" or somesuch, and offer a list of possible words in a small field that looks like the tab thing you mentioned.

I would not show any possibles until either the number of chars in the source text is, say five, or if the number of possible matches is less than a zillion.

If you do try, please let us know how it is going.

Craig Newman
Post Reply