Sign in Join

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

Mailing lists / lazarus / 2008-04

Ideas for the editor

14 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

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

Martin Waldenburg
to Damien Gerard: Le Apr 22, 2008 ? 4:02 PM, Mattias G?rtner a ?crit : I would like to see two different…
I would like to see two different source positions at the same time (the interface and the implementation).

implementing several editor windows for one source is rather simple, even applying different rules for each. Nevertheles because of the way the development of the editor took (which I disliked) it would require a rather large rewrite now.

Martin

Reply by email

Damien Gerard

Hi !

As a vim user, I often use splitted views on multiple files. Using a high resolution display, it would be really nice.

Would it be a good feature ?
How difficult is to implement it ?
Is there a way to open multiple source editors ?

Thanks !

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Marc Weustink
to Damien Gerard: Hi ! As a vim user, I often use splitted views on multiple files. Using a high resolution…
Damien Gerard wrote 7 lines
Hi ! As a vim user, I often use splitted views on multiple files. Using a high resolution display, it would be really nice. Would it be a good feature ?

Yes

How difficult is to implement it ?

yes

Is there a way to open multiple source editors ?

No,
problem is is that the current implementation is not really observer based, so there is a one to one connection between sourcefile,editor,notebookpage and notebook.

Marc

Reply by email

Damien Gerard
to Felipe Monteiro de Carvalho

Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit :

Show quoted text 6 lines
On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard wrote: > Is there a way to open multiple source editors ? You can open the second file with a different editor, like kwrite or gedit or notepad++.

But I would like to use the Code explorer :)

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Damien Gerard
to Marc Weustink: Yes yes problem is is that the current implementation is not really observer based, so…

Le Apr 22, 2008 ? 2:21 PM, Marc Weustink a ?crit :

Show quoted text 22 lines
Damien Gerard wrote: > Hi ! > > As a vim user, I often use splitted views on multiple files. > Using a high resolution display, it would be really nice. > > > Would it be a good feature ? Yes > How difficult is to implement it ? yes > Is there a way to open multiple source editors ? No, problem is is that the current implementation is not really observer based, so there is a one to one connection between sourcefile,editor,notebookpage and notebook.

Oki I understand why it is not a trivial update :)

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Mattias Gärtner
to Damien Gerard: Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : But I would like to use…

Zitat von Damien Gerard :

Show quoted text 12 lines
Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : > On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard > wrote: >> Is there a way to open multiple source editors ? > > You can open the second file with a different editor, like kwrite or > gedit or notepad++. But I would like to use the Code explorer :)

Do you want to _see_ two different source positions at the same time, or is it sufficient to switch quickly between two different source positions?

Mattias

Reply by email

Damien Gerard
to Mattias Gärtner

Le Apr 22, 2008 ? 4:02 PM, Mattias G?rtner a ?crit :

Show quoted text 18 lines
Zitat von Damien Gerard : > > Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : > >> On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard >> wrote: >>> Is there a way to open multiple source editors ? >> >> You can open the second file with a different editor, like kwrite or >> gedit or notepad++. > > > But I would like to use the Code explorer :) Do you want to _see_ two different source positions at the same time, or is it sufficient to switch quickly between two different source positions?

I would like to see two different source positions at the same time (the interface and the implementation).
Actually I would like to see two (three the most of the time) different source files at the same time (like I always do using Terminal) because usefull informations are not often in the same file

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Mattias Gaertner
to Martin Waldenburg: implementing several editor windows for one source is rather simple, even applying…
Show quoted text 9 lines
Damien Gerard schrieb: > I would like to see two different source positions at the same > time (the interface and the implementation). implementing several editor windows for one source is rather simple, even applying different rules for each. Nevertheles because of the way the development of the editor took (which I disliked) it would require a rather large rewrite now.

Can someone make a proposal for shortcuts and functions? How should two, three or four synedits be put into one page?

Mattias

Reply by email

Marc Weustink
to Mattias Gärtner: Zitat von Damien Gerard : Do you want to _see_ two different source positions at the same…
Mattias G?rtner wrote 14 lines
Zitat von Damien Gerard : > Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : > >> On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard >> wrote: >>> Is there a way to open multiple source editors ? >> You can open the second file with a different editor, like kwrite or >> gedit or notepad++. > > But I would like to use the Code explorer :) Do you want to _see_ two different source positions at the same time, or is it sufficient to switch quickly between two different source positions?

Sometimes when working in delphi I need to move/copy some code from some class I wrote before. In some cases I open a second editor window of the same source and put that on a second monitor.
When nestructuring things this is a nice feature. In case of Lazarus sometimes I need this too and open the source in a separate editor. Disadavantage is that the source isn't updated and that it takes more time to find the file (in delphi it's just view-new edit window, and the current source is displayed in a second notebook)

Marc

Reply by email

Flávio Etrusco
to Georg Vollnhals: I want to back this. Lazarus' editor is much more advanced than that of my old Delphi…
Georg Vollnhals wrote 58 lines
Marc Weustink schrieb: > Mattias G?rtner wrote: > >> Zitat von Damien Gerard : >> >> >>> Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : >>> >>> >>>> On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard >>>> wrote: >>>> >>>>> Is there a way to open multiple source editors ? >>>>> >>>> You can open the second file with a different editor, like kwrite or >>>> gedit or notepad++. >>>> >>> But I would like to use the Code explorer :) >>> >> Do you want to _see_ two different source positions at the same time, or is it >> sufficient to switch quickly between two different source positions? >> > > Sometimes when working in delphi I need to move/copy some code from some > class I wrote before. In some cases I open a second editor window of the > same source and put that on a second monitor. > When nestructuring things this is a nice feature. In case of Lazarus > sometimes I need this too and open the source in a separate editor. > Disadavantage is that the source isn't updated and that it takes more > time to find the file (in delphi it's just view-new edit window, and the > current source is displayed in a second notebook) > > Marc > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > > Hi, I want to back this. Lazarus' editor is much more advanced than that of my old Delphi times but having 2 windows of the same source-file openend side-by-side is one of the Delphi features I really miss. I used this a lot not only to check two depending source positions at the same time but for copying code snipplets from one position to the other - if you want to do that several times it is much easier to handle. Thank you very much in advance for thinking about how difficult it would be to implement such a feature. Regards Georg (Bremen)

It's actually not that difficult to implement and "upstream" SynEdit has had this for a long time.

Cheers,
Fl?vio

Reply by email

Damien Gerard
to Flávio Etrusco

Le Apr 23, 2008 ? 7:43 AM, Fl?vio Etrusco a ?crit :

Show quoted text 5 lines
> It's actually not that difficult to implement and "upstream" SynEdit has had this for a long time.

Only a proposal, but one solution might be the use of docking windows, plus shortcuts to directly split the editor (horiz/vert split, like vim/emacs do) ?

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Georg Vollnhals
to Marc Weustink: Sometimes when working in delphi I need to move/copy some code from some class I wrote…
Show quoted text 38 lines
Mattias G?rtner wrote: > Zitat von Damien Gerard : > > >> Le Apr 22, 2008 ? 2:37 PM, Felipe Monteiro de Carvalho a ?crit : >> >> >>> On Tue, Apr 22, 2008 at 6:36 AM, Damien Gerard >>> wrote: >>> >>>> Is there a way to open multiple source editors ? >>>> >>> You can open the second file with a different editor, like kwrite or >>> gedit or notepad++. >>> >> But I would like to use the Code explorer :) >> > Do you want to _see_ two different source positions at the same time, or is it > sufficient to switch quickly between two different source positions? > Sometimes when working in delphi I need to move/copy some code from some class I wrote before. In some cases I open a second editor window of the same source and put that on a second monitor. When nestructuring things this is a nice feature. In case of Lazarus sometimes I need this too and open the source in a separate editor. Disadavantage is that the source isn't updated and that it takes more time to find the file (in delphi it's just view-new edit window, and the current source is displayed in a second notebook) Marc _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi,

I want to back this. Lazarus' editor is much more advanced than that of my old Delphi times but having 2 windows of the same source-file openend side-by-side is one of the Delphi features I really miss.

I used this a lot not only to check two depending source positions at the same time but for copying code snipplets from one position to the other - if you want to do that several times it is much easier to handle.

Thank you very much in advance for thinking about how difficult it would be to implement such a feature.

Regards

Georg (Bremen)

Reply by email