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

Better Edit Program

Started by valithor, 25 August 2013 - 05:54 PM
valithor #1
Posted 25 August 2013 - 07:54 PM
BetterEdit

by: Valithor2



The aim of this program is to make editing larger programs easier. With the ability

to go directly to any line that you specify, you can easily correct errors in game

without ever having to open a editor outside of the game. The find feature

makes it easy to find a variable that is hidden in the program.

(I am a beginner lua programer i would appreciate suggestions and criticism.)


[left]
Newest versions
Spoiler[/left]
[left]Version 1.2.5 Beta[/left]
[left]pastebin: 7YGyJydE[/left]
[left]link: http://pastebin.com/7YGyJydE[/left]
[left]changelog:[/left]
[left]- added paste support[/left]
[left]- bug fix[/left]

[left]Version 1.2.4 Beta[/left]
[left]pastebin: jB37tQ0q[/left]
[left]link: http://pastebin.com/jB37tQ0q[/left]
[left]changelog:[/left]
[left]- Shorten delay between hitting Ctrl and menu popping up[/left]
[left]- Added in program directions for next and previous shortcuts[/left]

[left]Version 1.2.3 Beta
pastebin: P9dkqci4
Link: http://pastebin.com/P9dkqci4
changelog
- bug fixes

Current Recomended
Spoiler[/left]
Version 1.2.5 Beta
pastebin: 7YGyJydE
link: http://pastebin.com/7YGyJydE
changelog:
- added paste support
- bug fix

[left]Version 1.2
Pastebin: 2npeWkjh
link: http://pastebin.com/2npeWkjh
use: edit program line#
changelog:
- added a find feature
- added a next feature (part of find feature)
- added a previous feature(part of find feature)

Old beta versions
SpoilerVersion 1.2.2 Beta
pastebin: jM4E9hS4
Link: http://pastebin.com/Jm4E9hS4
changelog:
- fixed the nil error when exiting the edit program

Version 1.2.1 Beta
Pastebin: R2X0pxUe
link http://pastebin.com/R2X0pxUe
use: edit program line#
changelog:
-added key commands for goto, find, next, and previous
- goto = leftCtrl + g // find = leftCtrl + f // next = leftCtrl + up arrow // previous = leftCtrl + down arrow
warning: I know for 100% this version has errors. If you find them report them back to this thread so i can fix them

Old full releases
SpoilerVersion 1.1
Pastebin: 6DLa84hg
link: http://pastebin.com/6DLa84hg
use: edit program line#
changelog:
- Added a goto menu item to where while in the program you can go to a specific line
- removed a bug where the line you entered was carried over to next session

Version 1
Pastebin: UkBtMfn3
link: http://pastebin.com/ukbtmfn3
use: edit program line#

ToDo:
Spoilerhighlight keyword
copy and paste
auto update[/left]
[left]Fix turtle[/left]
[left]Show last word entered in the "find" feature[/left]
[left]

Known Errors:
SpoilerVersion 1.2 Errors:
- On new computers that have not used the find feature before will have a error after they exit the edit program. This error can be ignored Fixed in 1.2.5 Beta[/left]
[left]- the find and next feature buttons do not show on turtles
[/left]


[left]This is a short demo video I made just to show the basic features of the BetterEdit program so far.[/left]

[left]http://www.youtube.c...d&v=hEc1w5KMVio[/left]

[left]When the program gets more features I will make a better video showing each feature.[/left]
Edited on 06 July 2018 - 12:44 AM
valithor #2
Posted 26 August 2013 - 11:02 PM
-snip
Edited on 06 July 2018 - 12:44 AM
Parmacoy #3
Posted 26 August 2013 - 11:46 PM
Just because no one replies, doesn't mean its bad, this forum moves really slowly I have found, anyway ill have a look

Edit. Screenshots are pretty much a necessity here
svdragster #4
Posted 27 August 2013 - 03:59 AM
Really nice! Even with keyboard shortcuts. Great job!
Mitchfizz05 #5
Posted 27 August 2013 - 07:16 AM
It seems like most people go on the forums during the weekend - you should get more replies then.

And yeah, also you should get some screenshots.
"No pics, no clicks"

Although, from what I'm reading, good job.
valithor #6
Posted 27 August 2013 - 10:55 AM
I will add screenshots when I get home.
valithor #7
Posted 27 August 2013 - 08:07 PM
Added a short video sorry about there being no sound though
MKlegoman357 #8
Posted 28 August 2013 - 03:41 AM
Have you tried it on turtles? Because I "Next" and "Previous" will not fit.
reububble #9
Posted 28 August 2013 - 09:03 AM
Well, the criticism is that we can normally edit our code in something like notepad++
Not always I know, I know.
valithor #10
Posted 28 August 2013 - 05:44 PM
Have you tried it on turtles? Because I "Next" and "Previous" will not fit.

I will look into that right now the only computer that i have tested it on is the Advanced computer. I am going to have to completely rewrite this code for when I am getting closer to the end just to be able to add all of the features i am wanting.
valithor #11
Posted 28 August 2013 - 05:58 PM
Just so you know I will probably not be able to work on this much during week days. i will attempt to get the next version out as soon as i can.
Molinko #12
Posted 29 August 2013 - 07:45 PM
This is great man! If i may recommend… Maybe a better 'find' function that you can cycle through and set each instance of a searched string.. Other then than that great!! keep it up.
I really enjoy the feature to start editing at a specific line, i guess you did this for the ease of debugging??
Symmetryc #13
Posted 29 August 2013 - 08:33 PM
Just wondering, did you pull the base code out of the default edit program and extend it from there or did you rewrite the entire edit program?
valithor #14
Posted 30 August 2013 - 02:21 AM
Just wondering, did you pull the base code out of the default edit program and extend it from there or did you rewrite the entire edit program?

Right now i am just extending the base edit code, but in order to work out all of the bugs and add everything i want it will have to be rewritten. Right now i am just looking into the base edit code learning how everything works. I have never done anything like this so I am going 1 step at a time the first being extending the base code then next being to rewrite it.

This is great man! If i may recommend… Maybe a better 'find' function that you can cycle through and set each instance of a searched string.. Other then than that great!! keep it up.
I really enjoy the feature to start editing at a specific line, i guess you did this for the ease of debugging??

I will look into a way to make it to where you can find every instance of the keyword on each line. The version that is released is beta since it was more or less a test of how i wanted to do the find feature.

The goto feature was the first feature i added its main purpose was debugging programs. The next version will be out over the weekend when i actually have time to look at the code.
civilwargeeky #15
Posted 01 October 2013 - 07:56 PM
Nice Job. This program is awesome!

This is very useful for making functional programs on servers without having to go through the process of Notepad++ –> Pastebin –> Mining Turtle *BUG* –> Notepad++ and repeat. When in-server coding projects get rather large and I need to do debugging, this program makes it easy to go to the function screwing up and fix it, saving myself a lot of time.

Also, to get it to look better on turtles, I just removed "Print" from "tMenuItems" and it works like a charm.

Great program, keep up the good work :)/>
valithor #16
Posted 11 October 2015 - 05:50 AM
Even though this has been a dead project of mine for 2 years now, I still find myself constantly using it. So, I have added paste event support, and fixed a small bug that occurred when exiting the program following using the find feature.

paste: 7YGyJydE
FUNCTION MAN! #17
Posted 11 October 2015 - 12:05 PM
Still no screenshots.
valithor #18
Posted 11 October 2015 - 05:52 PM
Still no screenshots.

You are correct. I opted for a video, which has been in the op for the past 2 years, as it shows the features much better than screenshots ever could.