Page 1 of 2

LuaEdit

Posted: Sun Jul 17, 2011 11:24 pm
by kraftman
So I've been coding for a while with Lua, and the one thing that bugs me about text editors is their 1 dimensional nature: its just one huge list of all the stuff thats going into the program. You can separate it a bit by putting it into different files, but its still kind of annoying when you're working on two different parts of the same file, etc.

With that in mind, I'm trying to develop something that makes more sense in my head:
kznL4.jpg
kznL4.jpg (75.05 KiB) Viewed 572 times
You can open multiple projects, and have multiple files per project. As you code, it auto splits based on functions, and if a function is in the way, you can collapse it down to just its title, or collapse all of its sub functions.

It's still very much a work in progress, I'm having a lot of issues with performance due to having to draw the text out in sections for syntax highlighting, and framebuffers seem to have a problem rendering properly.

Eventually I'd like it to show other project files, such as images, and maybe run some of the written code in its own mini sandbox.

Re: LuaEdit

Posted: Sun Jul 17, 2011 11:27 pm
by Ensayia
It's an interesting idea that will be handy for people who think spatially or visually. I do like the dark background and contrast you have going.

Will the user be able to pan around the screen if the project is composed of too many nodes to fit on screen at once?

Re: LuaEdit

Posted: Mon Jul 18, 2011 2:29 am
by tentus
Just a tip, if you like to have multiple lines of code up at once, Notepad++ can do splitscreen on one or more files. It's really handy with large projects.

Re: LuaEdit

Posted: Mon Jul 18, 2011 3:28 am
by Cnaff
Really cool, will be nice for people like me who aren't very good at coding! :awesome:

Re: LuaEdit

Posted: Mon Jul 18, 2011 4:41 am
by Lafolie
tentus wrote:Just a tip, if you like to have multiple lines of code up at once, Notepad++ can do splitscreen on one or more files. It's really handy with large projects.
I actually think that this project is quite innovative. I've tested an early version of it and it works surprisingly well.

I hope you manage to finish it :)

Re: LuaEdit

Posted: Mon Jul 18, 2011 7:25 am
by kraftman
Ensayia wrote:
Will the user be able to pan around the screen if the project is composed of too many nodes to fit on screen at once?
Yeh, you can pan and zoom.

Re: LuaEdit

Posted: Mon Jul 18, 2011 8:43 am
by T-Bone
Looks nice. I've been thinking about making something a bit like this for a while. Keep up the good work, and please show us a demo version when you think it's ready for it! I'd love to try it.

However, I'm not sure it's something you really need. I use gedit, which has tabs built in, among other nice heatures, making it quite easy to deal with large amounts of code in several separate .lua files.

Re: LuaEdit

Posted: Mon Jul 18, 2011 2:12 pm
by Kadoba
I saw something sort of like this a while back. It was called Code Bubbles, which is think is a visual studio add-on. Being a very visual person myself I have to say this sounds quite awesome.

Re: LuaEdit

Posted: Mon Jul 18, 2011 7:27 pm
by kraftman
Kadoba wrote:I saw something sort of like this a while back. It was called Code Bubbles, which is think is a visual studio add-on. Being a very visual person myself I have to say this sounds quite awesome.
Thats cool, I didn't really check what else had been done before i started making it, I'll check out the vid and see if it inspires me :P
T-Bone wrote: However, I'm not sure it's something you really need. I use gedit, which has tabs built in, among other nice heatures, making it quite easy to deal with large amounts of code in several separate .lua files.
yeh it's not so much need as want, I'm not even sure I'll end up using it, it was just a good way to learn some more lua and love.

Re: LuaEdit

Posted: Fri Jul 22, 2011 7:02 pm
by kraftman
Well here's a quick and dirty demo for anyone interested.

Framebuffers are still pretty dodgy, but the framerate is much higher
You can save and load projects but the layout isn't saved yet.
You can only type from the end of a block of a text currently.

I'm sure there are plenty of other ways of breaking this version, I'm just putting it here in case anyone is interested in playing around with it.

Enjoy!