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

Enhanced Editor

Started by DerTroglodyt, 18 June 2013 - 09:03 AM
DerTroglodyt #1
Posted 18 June 2013 - 11:03 AM
I put together an enhanced editor with line and block commands.
You will need the help file. Really, do read it! ;-)
Have fun.

Update: Added some bug fixes.

Editor
http://pastebin.com/KChkUVmB
Help file:
http://pastebin.com/90ED13gE

Just a little teaser:
- Press ALT to show a menu with commands.
- To quickly exit press ALT + q.
- To save and exit press ALT + s.
- STRG + g to goto to a line number
- STRG + f to find text using lua regular expressions. F3 for next find.
- To enter/leave block command mode press STRG + ENTER.
- Implemented line commands: <, >, a, b, c, d, i, m, r
- Implemented block commands: <<, >>, cc, dd, mm, rr
For extended documentation see help file (ALT + h)

Example syntax highliting and input field for find command:



Example for block function "copy" (before and after):



superaxander #2
Posted 18 June 2013 - 11:05 AM
Sounds nice. Screenshots? Can you explain in the thread what the functions you made do(Just for a quick overview)? Otherwise looks like it's great! I haven't had time to test it but it sounds good!
DerTroglodyt #3
Posted 20 June 2013 - 02:19 PM
Added some more description and pics.
superaxander #4
Posted 23 June 2013 - 02:16 AM
Could you replace alt with a different key? It is a shortcut for ubuntu(and windows IIRC)
DerTroglodyt #5
Posted 24 June 2013 - 06:04 PM
Could you replace alt with a different key? It is a shortcut for ubuntu(and windows IIRC)
Shure I could, but it works fine for me under Ubuntu. And I dislike the STRG use in the default editor of CC.
If it doesn't fit your style, just find/replace the "keys.alt" to something else.
Which reminds me: Find/Replace would be nice too…