Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

New Features for source editor

20 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lucas codedeep

Hi

Interesanting new features to implement in source editor of Lazarus

See this url: http://www.youtube.com/watch?v=gJmd6wLJ6ag And this url: http://www.youtube.com/watch?v=9IR5z_mtlBk to compare two methods

These characteristics were helping to write twice more rapid source code

-Autocompletion in real-time (no type Ctrl+Space)
-When type "begin", add "end;"
-When type "(" , add ")"
-When type "{" , add "}"

Thank you for reading

;D

_________________________________________________________________ Consigue gratis el nuevo Messenger. ?Desc?rgatelo! http://download.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090223/e3a86e8d/attachment.html

Reply by email

Graeme Geldenhuys
to Lucas codedeep

2009/2/23 Lucas codedeep :

-Autocompletion in real-time (no type Ctrl+Space) -When type "begin", add "end;"

I did not watch the YouTube videos, but real-time auto-completion is already possible with Lazarus IDE. You simply need to enable it using your preferred method.

Add the following to your lazarus.dci file. Type "begin" and press ENTER, and the "end" will be added and the cursor indented to the correct position. To set this up via Lazarus IDE, go to: "Environment | Code Templates". I have built up a huge collection for myself over the years and also use the Macro feature which is very handy.

--------------[ lazarus.dci ]------------------
[begin | begin..end pair in realtime]
$(AttributesStart)
AutoOnLineBreak=true
RemoveChar=true
$(AttributesEnd)
begin
|
end
------------------[ end ]--------------------

-When type "(" , add ")" -When type "{" , add "}"

All these are already possible.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Lucas
to Graeme Geldenhuys

Oh yes. Interesant feature but not same.... please see video.....

--------------------------------------------------

Earlier message 53 lines
From: "Graeme Geldenhuys" Sent: Monday, February 23, 2009 8:00 AM To: "General mailing list" Subject: Re: [Lazarus] New Features for source editor > 2009/2/23 Lucas codedeep : >> >> -Autocompletion in real-time (no type Ctrl+Space) >> >> -When type "begin", add "end;" > > I did not watch the YouTube videos, but real-time auto-completion is > already possible with Lazarus IDE. You simply need to enable it using > your preferred method. > > Add the following to your lazarus.dci file. Type "begin" and press > ENTER, and the "end" will be added and the cursor indented to the > correct position. To set this up via Lazarus IDE, go to: "Environment > | Code Templates". I have built up a huge collection for myself over > the years and also use the Macro feature which is very handy. > > --------------[ lazarus.dci ]------------------ > [begin | begin..end pair in realtime] > $(AttributesStart) > AutoOnLineBreak=true > RemoveChar=true > $(AttributesEnd) > begin > | > end > ------------------[ end ]-------------------- > > >> -When type "(" , add ")" >> >> -When type "{" , add "}" > > > All these are already possible. > > > Regards, > - Graeme - > > > _______________________________________________ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://opensoft.homeip.net/fpgui/ > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Lucas

Ohhhh

Impresinants features to lazarus code editor

-BlockCompletion
-SyncEdit
-Live Templates
-Inline Variable & Declare Variable
-Declare Field
-Extract ResourceString
-Find Unit
-Rename
-Extract Method
-Change Params

Refactoring tools menu to lazarus now.... je je je

This features and more present in Delphi 2007 or above

See in this url: http://www.youtube.com/watch?v=ky90Io32hLQ

Impressive 8)

Earlier message 45 lines
From: Lucas codedeep Sent: Monday, February 23, 2009 5:54 AM To: Subject: [Lazarus] New Features for source editor Hi Interesanting new features to implement in source editor of Lazarus See this url: http://www.youtube.com/watch?v=gJmd6wLJ6ag And this url: http://www.youtube.com/watch?v=9IR5z_mtlBk to compare two methods These characteristics were helping to write twice more rapid source code -Autocompletion in real-time (no type Ctrl+Space) -When type "begin", add "end;" -When type "(" , add ")" -When type "{" , add "}" Thank you for reading ;D -------------------------------------------------------------------------------- Actual?zate, descubre el nuevo Windows Live Messenger. ?Desc?rgatelo ya! --------------------------------------------------------------------------------

Reply by email

Lee Jenkins
to Lucas
Lucas wrote
-Autocompletion in real-time (no type Ctrl+Space)

This by far, is one of the most productive enhancements that any code editor can have. It is just amazing how fast you can code with this feature as well as reduce typo's.

See CNWizards for Delphi:
http://www.cnpack.org/index.php?lang=en

Their pack has such a feature and to boot, it's intelligent, taking into account how often you use a selection from the list as well as what was typed before invoking it.

I would love to see this in Lazarus.

Warm Regards, Lee

Reply by email

Alexander Klenin
to Lee Jenkins
Lee Jenkins wrote 7 lines
> > -Autocompletion in real-time (no type Ctrl+Space) > This by far, is one of the most productive enhancements that any code editor can have. ?It is just amazing how fast you can code with this feature as well as reduce typo's.

While I am not against adding this to Lazarus, I would like to note that this is one
Delphi 2007 feature I actively do not like, and always turn off.

Alexander S. Klenin

Reply by email

Lee Jenkins
to Alexander Klenin
Alexander Klenin wrote 10 lines
On Wed, Feb 25, 2009 at 04:41, Lee Jenkins wrote: >> -Autocompletion in real-time (no type Ctrl+Space) >> > This by far, is one of the most productive enhancements that any code editor can > have. It is just amazing how fast you can code with this feature as well as > reduce typo's. While I am not against adding this to Lazarus, I would like to note that this is one Delphi 2007 feature I actively do not like, and always turn off.

Hmmm. I didn't think Delphi had this feature. I'm talking about Code Insight/helper that shows suggestions as you type. I type "tstr" and TString, TSTringList, etc is shown. I had to use CNWizards to get this functionality.

Warm Regards, Lee

Reply by email

Alexander Klenin
to Lee Jenkins
Lee Jenkins wrote 8 lines
Alexander Klenin wrote: > While I am not against adding this to Lazarus, I would like to note > that this is one > Delphi 2007 feature I actively do not like, and always turn off. Hmmm. ?I didn't think Delphi had this feature. ?I'm talking about Code Insight/helper that shows suggestions as you type. ?I type "tstr" and TString, TSTringList, etc is shown. ?I had to use CNWizards to get this functionality.

Ah, then I misunderstood it too, I think the feature I talked about is called "living templates" or some such.

Alexander S. Klenin

Reply by email

Paul Ishenin
to Graeme Geldenhuys: 2009/2/23 Lucas codedeep : I did not watch the YouTube videos, but real-time…
Graeme Geldenhuys wrote 17 lines
Add the following to your lazarus.dci file. Type "begin" and press ENTER, and the "end" will be added and the cursor indented to the correct position. To set this up via Lazarus IDE, go to: "Environment | Code Templates". I have built up a huge collection for myself over the years and also use the Macro feature which is very handy. --------------[ lazarus.dci ]------------------ [begin | begin..end pair in realtime] $(AttributesStart) AutoOnLineBreak=true RemoveChar=true $(AttributesEnd) begin | end ------------------[ end ]--------------------

Can you share your live templates? Maybe we can add some to Lazarus?

Best regards,
Paul Ishenin.

Reply by email

Leonardo M. Ramé
to Lee Jenkins: This by far, is one of the most productive enhancements that any code editor can have. …

I just downloaded a snapshot of Lazarus 0.9.27 Beta to see this feature and it doesn't seems to be installed/enabled. How do I configure it?

Leonardo M. Ram?
Griensu S.A. - Medical IT C?rdoba
Tel.: 0351 - 4247979

Lee Jenkins escribi?:

Show quoted text 29 lines
Lucas wrote: > -Autocompletion in real-time (no type Ctrl+Space) > > This by far, is one of the most productive enhancements that any code editor can have. It is just amazing how fast you can code with this feature as well as reduce typo's. See CNWizards for Delphi: http://www.cnpack.org/index.php?lang=en Their pack has such a feature and to boot, it's intelligent, taking into account how often you use a selection from the list as well as what was typed before invoking it. I would love to see this in Lazarus. -- Warm Regards, Lee _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lee Jenkins
to Alexander Klenin: Ah, then I misunderstood it too, I think the feature I talked about is called "living…
Alexander Klenin wrote 12 lines
On Thu, Feb 26, 2009 at 22:17, Lee Jenkins wrote: > Alexander Klenin wrote: >> While I am not against adding this to Lazarus, I would like to note >> that this is one >> Delphi 2007 feature I actively do not like, and always turn off. > Hmmm. I didn't think Delphi had this feature. I'm talking about Code > Insight/helper that shows suggestions as you type. I type "tstr" and TString, > TSTringList, etc is shown. I had to use CNWizards to get this functionality. Ah, then I misunderstood it too, I think the feature I talked about is called "living templates" or some such.

Ah, OK. I have to tell you that I didn't take to live templates immediately either but they can be a real time saver. I even have a few that create entire units for me.

Warm Regards, Lee

Reply by email

Hans-Peter Diettrich
to Alexander Klenin: While I am not against adding this to Lazarus, I would like to note that this is one…
>> -Autocompletion in real-time (no type Ctrl+Space) While I am not against adding this to Lazarus,

ACK

I would like to note that this is one Delphi 2007 feature I actively do not like, and always turn off.

Most of the input features are helpful only to beginners, who never learned to type. People used to key-in with 10 fingers are only blocked by such features, and have to turn them all off.

DoDi

Reply by email

Reenen Laurie
to Hans-Peter Diettrich

I just think that 10 finger typists with these tools could be equal to a 15 finger typists... :-)

Hans-Peter Diettrich wrote 23 lines
Alexander Klenin schrieb: >>> -Autocompletion in real-time (no type Ctrl+Space) > While I am not against adding this to Lazarus, ACK > I would like to note > that this is one > Delphi 2007 feature I actively do not like, and always turn off. Most of the input features are helpful only to beginners, who never learned to type. People used to key-in with 10 fingers are only blocked by such features, and have to turn them all off. DoDi _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090226/c1a2d0ab/attachment.html

Reply by email

Lee Jenkins
to Hans-Peter Diettrich: ACK Most of the input features are helpful only to beginners, who never learned to type.…
Hans-Peter Diettrich wrote 16 lines
Alexander Klenin schrieb: >>> -Autocompletion in real-time (no type Ctrl+Space) > While I am not against adding this to Lazarus, ACK > I would like to note > that this is one > Delphi 2007 feature I actively do not like, and always turn off. Most of the input features are helpful only to beginners, who never learned to type. People used to key-in with 10 fingers are only blocked by such features, and have to turn them all off.

I'm a pretty fair typist having took it in school and did a lot of it even before I developed an interest in programming and for me, that feature still increases my code output tremendously. Not only that but since I don't have to do as much typing, I'm more apt to declare more self documenting variables and types as well.

I like being able to type "tobj" and hit enter to end up with TObjectList and a space after it to continue typing. Just my personal preference. :)

Warm Regards, Lee

Reply by email

Hans-Peter Diettrich
to Lee Jenkins
I like being able to type "tobj" and hit enter to end up with TObjectList and a space after it to continue typing. Just my personal preference. :)

It's okay when I can tell the IDE when I want some assistance. It's not okay when the IDE *means* that it should become active, and I have to inspect and correct what it did to me and my code :-(

DoDi

Reply by email

Lee Jenkins
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 9 lines
Lee Jenkins schrieb: > I like being able to type "tobj" and hit enter to end up with TObjectList and a > space after it to continue typing. Just my personal preference. :) It's okay when I can tell the IDE when I want some assistance. It's not okay when the IDE *means* that it should become active, and I have to inspect and correct what it did to me and my code :-(

Agreed. The CNWizards version has a couple of settings that help such as the number of chars that must be typed before the popup occurs. Of course, if you just keep typing with pausing for x seconds/ms, the popup never occurs.

Warm Regards, Lee

Reply by email

dmitry boyarintsev
to Lee Jenkins: I'm a pretty fair typist having took it in school and did a lot of it even before I…
I like being able to type "tobj" and hit enter to end up with TObjectList and a space after it to continue typing. ?Just my personal preference. :)

How can you be sure that after hitting enter, you'll get TObjectList, rather than TObject? or TObjective? or TObjectionNotAcceptedMode?

The only answer is - you'll have to look at the screen and press Up/Down arrows, or any other way to control the completition. I'm pretty sure, that TObj list can be quite long :)

Also, you'll have to "swtich context of you brain work". Then you're typing "TObjectList" you just need to remember the word. But then you're trying to select the same word from the list, it's another kind of work for your brain - you need to recognize the word.

That can be really annoying and tiresome, because you always need to switch from one kind of brain work to another.

Reply by email

Graeme Geldenhuys
to Paul Ishenin: Can you share your live templates? Maybe we can add some to Lazarus? Paul Ishenin.
Paul Ishenin wrote
Can you share your live templates? Maybe we can add some to Lazarus?

No problem. I'm at home for a week, so when I am back at the office I'll go through them as pass on what I think is relevant. Most are probably more related to tiOPF based code.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Lee Jenkins: Ah, OK. I have to tell you that I didn't take to live templates immediately either but…
Lee Jenkins wrote
Ah, OK. I have to tell you that I didn't take to live templates immediately either but they can be a real time saver. I even have a few that create entire units for me.

I have similar templates but for Lazarus. Most work with tiOPF or fpGUI based projects. I even have some complicated ones that use the clipboard to generate classes and associated list classes with all overloaded methods populated for me. All from typing a single word, cit it to the clipboard, type 3-4 abbreviated letters and pressing Ctrl+J. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email