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

[1.3] Text editor enhancements.

Started by DerrikeG, 08 May 2012 - 02:49 PM
DerrikeG #1
Posted 08 May 2012 - 04:49 PM
I added support for home, end, and delete to the bios and the ingame text editor.
In addition to that, I added pageup and pagedown support for the text editor, in addition to making the left and right keys wrap to the next/previous line when used at the beginning/end of a line.
Recently added displaying the current/total line number in the bottom right, made tab insert two spaces, and made it so that upon making a new line it matches the tab level of the line it came from. Also made bios provide the getType and getMethods call to wrapped peripherals because it seemed like a bit of an incongruity.
Here's a picture of it in action, for what little action I can represent in a still picture.

bios.lua
rom/programs/edit
Xfel #2
Posted 09 May 2012 - 01:01 PM
I wrote similar modifications some time ago, but no matter which version, I think the functionallity should be added to the main codebase.
DerrikeG #3
Posted 17 May 2012 - 12:19 PM
I don't mean to bump my own thread but I did include some minor enhancements including auto-tab-indentation and line numbers, as well as having tab feign functionality.
Cloudy #4
Posted 17 May 2012 - 12:22 PM
Sweet! I'll talk to dan about including it in the main game for the next release, after I've tried it out.