Page 1 of 1

Editor hints (and maybe completion)

Posted: Sat May 03, 2014 11:07 pm
by DarScott
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.

Re: Editor hints (and maybe completion)

Posted: Sun May 04, 2014 4:29 pm
by richmond62
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.

Re: Editor hints (and maybe completion)

Posted: Sun May 04, 2014 5:46 pm
by DarScott
I suppose if there is a hints tab at the bottom of the window then not selecting it would be effectively turning it off.

Re: Editor hints (and maybe completion)

Posted: Sun May 04, 2014 8:47 pm
by richmond62
At the bottom of which windows?

The scriptEditor?
scriptEd.png

Re: Editor hints (and maybe completion)

Posted: Sun May 04, 2014 8:50 pm
by DarScott
nice

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

Re: Editor hints (and maybe completion)

Posted: Mon May 05, 2014 8:36 am
by richmond62
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

Re: Editor hints (and maybe completion)

Posted: Mon May 05, 2014 8:40 am
by richmond62
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?

Re: Editor hints (and maybe completion)

Posted: Wed Jul 23, 2014 4:20 am
by keram