Page 1 of 36

Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:48 am
by Antonio Linares
This is the first release (pending to be intensively tested) of FiveTech fivedit, a source code editor and projects manager.
You can already easily create and build projects from it:

https://bitbucket.org/fivetech/fivewin- ... ivedit.zip

fivedit.exe has been build using FWH 15.01. Full source code included.

Please be aware that this is a work in progress so it has the risk to loose your changes, or modify your files.
So please make backup of your files before using it, thanks!

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 8:07 am
by Antonio Linares
Fivedit projects are ascii files with this structure:

YourProject.prj

[files]
1=test.prg
2=one.prg
3=two.prg
4=three.prg
5=test.rc

You can create them from fivedit itself (just open a file and select "Add item" from from Projects menu, then save the project from the projects menu).

In case that you have many files to add, you can edit them and add your files manually.

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 8:10 am
by Antonio Linares
When you save a project, current fivedit settings are saved in the project file too.

A project settings has preference over the general fivedit preferences.

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 2:23 pm
by Rick Lipkin
Antonio

It would be very beneficial if you could use the right side pane to show a jump list of User defined functions ( or methods ) contained within the .prg.

I am not too interested in collapsible (+) code within the .prg .. I would just rather see the entire code, but the jump list for me is the 'gold standard' for text editors.

Rick Lipkin

ps .. right click on the .prg <open tab> and offer to close as a short-cut 8)

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 5:50 pm
by Antonio Linares
Rick,

Thats already implemented :-)

Just open a large PRG and you will see all your functions at the right side

Good idea the right click for close, but that we force use to use TFolderEx instead of TFolder. No problem but it will not be a quick change :-)

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 6:10 pm
by James Bott
Antonio,

Wow, you have put a lot of work into this. I'm impressed.
Just open a large PRG and you will see all your functions at the right side
Yes it is working great for functions, but it would really helpful if it worked for methods as well. And classes too. For as you know, I am OOP obsessed now. Or, maybe I'm possessed...

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 6:51 pm
by Antonio Linares
James,

Methods are supported too. Please see this line in function FillFuncList():

if cToken $ "static func,func,proc,clas,meth,hb_f"

if a line starts with that, then it is shown :-)

Tomorrow we will publish FWH 15.01 so you will be able to build Fivedit.prg for yourself and now, we have lots of possibilities to add :-)

yes, I am possessed too with classes and objects ;-)

Yesterday I was chatting with Pritpal, telling him about "Actor". Not sure if you ever used it. Actor and Smalltalk somehow were the "fathers" of Clipper object oriented implementation :-) FWH\samples\classtre.prg reminds the "Actor" interface.

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 6:58 pm
by Rick Lipkin
Antonio

Opened my version and I did not see the Function Jumplist :(

Rick Lipkin

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:19 pm
by Antonio Linares
Rick,

Please download again fivedit.zip from:

https://bitbucket.org/fivetech/fivewin- ... ivedit.zip

There was a bug. Already fixed. This was missing :-)

Code: Select all

   ::oEditor:bGotFocus = { | o | ::oEditor := o, ::FillFuncList() } 
 
See how Fivedit.exe shows itself:
Image

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:28 pm
by Antonio Linares
Image

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:30 pm
by James Bott
Antonio,

Even with the new version, I do not see methods in the jumplist, only functions.

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:31 pm
by Antonio Linares
James,

Please open a PRG from FWH\source\classes and let me see how you see it, thanks

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:33 pm
by James Bott
Ok, I see that methods will show when they already exist in the file when you load it, but new methods typed in do not show (until the file is saved and reloaded).

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:36 pm
by Antonio Linares
James,

Class TFivedit Method FillFuncList() updates the jump list, so we need to call it when the user press VK_ENTER in the editor.

Lets see how to implement it... :-)

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 7:37 pm
by James Bott
It appears that you are sorting the jumplist, and if so, shouldn't "function" come before "method?"