This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ElvishJerricco's profile picture

New CC features!

Started by ElvishJerricco, 30 March 2015 - 07:01 PM
ElvishJerricco #1
Posted 30 March 2015 - 09:01 PM
Auto completion coming to CC!

Couple of things to note:
  • We have the grays on black and white computers!
  • Showing this by example in the Lua REPL program means that either it's hard coded into the REPL, or it's now API in the read function, which would be awesome.
ItsRodrick #2
Posted 30 March 2015 - 09:24 PM
It also works at the Edit program! :D/>

Also, the Edit program now has RUN
Geforce Fan #3
Posted 30 March 2015 - 09:32 PM
I'm not sure how I feel about this. It could easily be done as a user-made program
ElvishJerricco #4
Posted 30 March 2015 - 09:44 PM
I'm not sure how I feel about this. It could easily be done as a user-made program

I've never liked that this is kind of the go to response when new features are suggested. Sometimes the suggested features are so obvious that there's no reason not to have it in. I think auto-complete is one of those.

Anyway, being in edit raises some questions about how this works. Edit doesn't use read(), so how exactly is it using the same API as the Lua REPL?
Bomb Bloke #5
Posted 30 March 2015 - 10:21 PM
Methinks it's less likely the feature is built into the "lua" script, and more likely it's built into an API function that both read() and the "edit" script are able to call.

It strikes me that there may be a behaviour switch to make it work in the shell with folders/files. We haven't seen it functioning that way yet, but I imagine Dan'd go for a uniform experience and have it available there too. I guess we'll see.

Quite frankly I more interested in the grey background, but being able to tab in commands'll indeed be handy. :)/>
SquidDev #6
Posted 31 March 2015 - 08:36 AM
I love the way I watched both clips before reading this and didn't even notice the grey background! I'm pretty excited, but it would be even better if this was implemented inside the shell as that is where I spend most of my time. All we need now is that read()'s history ignores duplicates and empty strings!
ElvishJerricco #7
Posted 31 March 2015 - 09:19 AM
I love the way I watched both clips before reading this and didn't even notice the grey background! I'm pretty excited, but it would be even better if this was implemented inside the shell as that is where I spend most of my time. All we need now is that read()'s history ignores duplicates and empty strings!

We also need UNIX-like piping but one step at a time I guess =P
Wojbie #8
Posted 31 March 2015 - 09:19 AM
Gray background is one big change for basic computers. If it adds gray font color too it would mean we now have 6 instead of 2 readable combinations of colors. (7 instead of 3 if you can read black on not so black combo - i can't)

As for tab-completion. Well depending on how its implemented (and if its implemented into shell) that could mean death to my extended shell. And i can't be more happy about that :D/> . If not that will make it a lot smaller.
Edited on 31 March 2015 - 07:20 AM