Editor hints (and maybe completion)
Moderator: Klaus
Editor hints (and maybe completion)
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.
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.
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Editor hints (and maybe completion)
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.
they should be optional, selected for/against in Livecode preferences.
Re: Editor hints (and maybe completion)
I suppose if there is a hints tab at the bottom of the window then not selecting it would be effectively turning it off.
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Editor hints (and maybe completion)
At the bottom of which windows?
The scriptEditor?
The scriptEditor?
Re: Editor hints (and maybe completion)
nice
Your message contains 4 characters. The minimum number of characters you need to enter is 10.
Your message contains 4 characters. The minimum number of characters you need to enter is 10.
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Editor hints (and maybe completion)
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:
The only snag is that while HINTS are visible ERRORS are not.
This looks like a better bet:
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Editor hints (and maybe completion)
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?
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)
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit