Editor hints (and maybe 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
DarScott
Posts: 227
Joined: Fri Jul 28, 2006 12:23 am
Contact:

Editor hints (and maybe completion)

Post by DarScott » Sat May 03, 2014 11:07 pm

It would be nice to have a hints tab at the bottom of the editor.

For the start of built-in commands it might show the likely command including both built-in commands and user defined commands in the message path. If none match (or even if there are matches) then a synonym substitution might be listed.

Type in 'listen' and the hints might be this:
accept datagram connections on port ...
accept connections on port ...
listenToMusic station (from this stack)


Type in 'close' and you get this:
close ...
close driver ...
close file...
close printing...
close process...
close socket...
closeRobot robotID (from front script from button "robot helpers")


Maybe those dots should be full or partial syntax.

And maybe some way to type the right arrow to get the partial for the one at the top. Or the right arrow can select the highlighted one and up and down can move the highlight.

And a special colorization for using commands and functions currently in the message path.

Hints might also be provided for 'on' where messages are listed in contextual order and for functions once the left parenthesis is hit. Maybe even 'the' can trigger some hints.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Editor hints (and maybe completion)

Post by richmond62 » Sun May 04, 2014 4:29 pm

I can see the point of editor hints, but, personally, I do not like them, so
they should be optional, selected for/against in Livecode preferences.

DarScott
Posts: 227
Joined: Fri Jul 28, 2006 12:23 am
Contact:

Re: Editor hints (and maybe completion)

Post by DarScott » Sun May 04, 2014 5:46 pm

I suppose if there is a hints tab at the bottom of the window then not selecting it would be effectively turning it off.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Editor hints (and maybe completion)

Post by richmond62 » Sun May 04, 2014 8:47 pm

At the bottom of which windows?

The scriptEditor?
scriptEd.png

DarScott
Posts: 227
Joined: Fri Jul 28, 2006 12:23 am
Contact:

Re: Editor hints (and maybe completion)

Post by DarScott » Sun May 04, 2014 8:50 pm

nice

Your message contains 4 characters. The minimum number of characters you need to enter is 10.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Editor hints (and maybe completion)

Post by richmond62 » Mon May 05, 2014 8:36 am

Joking apart; that is not a bad model.

The only snag is that while HINTS are visible ERRORS are not.

This looks like a better bet:
scriptEdnew.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Editor hints (and maybe completion)

Post by richmond62 » Mon May 05, 2014 8:40 am

I honestly don't know how doable this is: BUT . . .

instead of completion would it be possible to drag and drop one of the suggestions from the Script Hint panel?

Or; how about a clickLine that would copy-paste the hint into the script?

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Editor hints (and maybe completion)

Post by keram » Wed Jul 23, 2014 4:20 am

Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Post Reply