Latest: v1.1 Adds advanced menu options, configurable menu hiding, keyboard/cursor-based block selection, and more; removes numerous bugs from 1.0
I've been frustrated with the offerings for enhanced in-game editors in CC for a long time. There have been many that look great, but none of them have been exactly the editor I want, so I've set out to create my own ideal editor!
first off, pictures: (pics are of current v1.1, menus are different in v1.2)
Features:
- all the features you've come to expect from the built-in editor, with two minor exceptions.1
- easy and intuitive basic menus, with a toggleable efficient advanced alternative
- run program from the editor; if it errors, it takes you to the line number where the error was generated.
- basic or advanced computer support
- Complex block selection, with keyboard controls on any computer, or by simply dragging the mouse on advanced computers.
- increase/decrease selected block indentation
- "–update" shell argument to update to the latest version automatically
- special handling to prevent menus from interfering with typing alt-gr characters on non-english keyboards, unlike built-in edit
- works on tablets
- somewhat intelligent auto-indent features - "enter" after beginning a for, while, or repeat loop, or after an else or elseif clause, will be indented one step; lines with end, elseif, or until will be de-indented, if they have not already been.
Spoiler
- gui-based file picker, for new saveAs and Load operations.
- Because of the addition of new APIs, if you have a version before v1.1, you will have to run "edit+ –update beta" twice for it to download the new file (the old version doesn't know about it). v1.1 (current release) and all later versions should no longer have this issue.
Spoiler
q - exit (x is cut)s - save
r - run program
c - copy
x - cut
v - paste
b - begin/end block selection
tab/< - decrease indent (line or block)
> - increase indent (line or block)
h - toggle menu hiding
m - toggle menu mode (so, back to basic menus)
? - not implemented properly, will pop up this list in-game
Also, it defaults to basic menus and no menu hiding on first launch, but it remembers your settings if you change them, so you won't have to keep changing them to whatever mode you prefer.
More features are planned, just wanted to get this first stable release out there.
Planned features:
Spoiler
next version- load, new, and save as menu commands, with simple visual file/path picker
- recent files list, for quick and easy switching between a group of files
- multi-file editing - have multiple files open at once, copy and paste code between them, etc
- revert command, reverts to last version
- undo/redo commands
- use a scratch file to provide crash/reboot-protection, for extra server-friendliness - no losing code if the server reboots and you hadn't saved, or if you find an "undocumented feature" that crashes the editor.
- context menus - right-click to bring up a context menu, with cut/copy/paste conveniently there. Also accessible with right-ctrl to open at cursor on any computer.Smart indenting (req by GeForce Fan)
- toggleable line numbers on left side (I don't know why people like this, but apparently they do, and alekso already asked for it)
- automatic indenting
- a variety of syntax highlighting configs, and the ability to customize them to your personal tastes.
- highlighting of standard lua and CC functions/apis
- Find, Find and Replace, with optional lua pattern support
- jump to named function definitions, line numbers
Just type the following into any computer with http enabled:
pastebin run sR9t4iRZ
And it should download the last stable release from github!To install the current beta release (which may have bugs, but also moar features!), just add "beta", like so…
pastebin run sR9t4iRZ beta
If you find any issues, however minor, please report them in the thread and I'll fix them ASAP, and tell me if they were in the stable or beta version. Suggestions for additional features are encouraged as well, though I make no promise to implement them unless I like them!
Oh, and I'm also open to suggestions for a better name than "edit+", not least because I'm fairly sure best practices discourage the "+" sign in file names.
Thanks already go to those who've reported bugs:
alekso56, Lyqyd, HPWebcamAble, nitrogenfingers, Kaikaku, Timia2109, wieselkatze
1 there's not yet any auto-indenting functionality; this is planned for a future version. Also, there's no print feature. I have no plans to implement one, either, but if a lot of people really want it, I may change relent.