Thread overview
Simple text editor program
Nov 17, 2021
pascal111
Nov 17, 2021
Ali Çehreli
Nov 17, 2021
Dr Machine Code
Nov 17, 2021
Ali Çehreli
Nov 17, 2021
bachmeier
Nov 17, 2021
bachmeier
Nov 18, 2021
zjh
Nov 17, 2021
Adam D Ruppe
November 17, 2021

Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone.

November 16, 2021
On 11/16/21 6:10 PM, pascal111 wrote:
> Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone.

I am not familiar with any of them but searching for 'editor' finds some packages:

  https://code.dlang.org/search?q=editor

I think 'med' is by Walter Bright; he uses that editor daily.

Ali
November 17, 2021
On Wednesday, 17 November 2021 at 02:10:07 UTC, pascal111 wrote:
> Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone.

Probably not what you really want but this old post has a cute sample program using my minigui.d

https://forum.dlang.org/post/dyvhplzvsoojwkypdhaw@forum.dlang.org

Of course most the functions are just stubs.
November 17, 2021
On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:
> On 11/16/21 6:10 PM, pascal111 wrote:
>> Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone.
>
> I am not familiar with any of them but searching for 'editor' finds some packages:
>
>   https://code.dlang.org/search?q=editor
>
> I think 'med' is by Walter Bright; he uses that editor daily.
>
> Ali

It's a emacs' variant written in D?
November 17, 2021
On 11/17/21 12:49 PM, Dr Machine Code wrote:

>> I think 'med' is by Walter Bright; he uses that editor daily.
>>
>> Ali
>
> It's a emacs' variant written in D?

Yes. The dub page explains that the original author is Dave G. Conroy. med is written by Walter and is his favorite editor. (I should try it one day and see how different it is from Emacs.)

Ali

November 17, 2021
On Wednesday, 17 November 2021 at 21:37:01 UTC, Ali Çehreli wrote:
> On 11/17/21 12:49 PM, Dr Machine Code wrote:
>
> >> I think 'med' is by Walter Bright; he uses that editor daily.
> >>
> >> Ali
> >
> > It's a emacs' variant written in D?
>
> Yes. The dub page explains that the original author is Dave G. Conroy. med is written by Walter and is his favorite editor. (I should try it one day and see how different it is from Emacs.)
>
> Ali

It was originally written in C. Walter ported it to D in 2008:

https://github.com/DigitalMars/med/blob/master/src/med/main.d
November 17, 2021
On Wednesday, 17 November 2021 at 20:49:22 UTC, Dr Machine Code wrote:
> On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:
>> On 11/16/21 6:10 PM, pascal111 wrote:
>>> Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone.
>>
>> I am not familiar with any of them but searching for 'editor' finds some packages:
>>
>>   https://code.dlang.org/search?q=editor
>>
>> I think 'med' is by Walter Bright; he uses that editor daily.
>>
>> Ali
>
> It's a emacs' variant written in D?

Emacs, but not GNU Emacs. There's a big difference:

http://www.texteditors.org/cgi-bin/wiki.pl?EmacsFamily
November 18, 2021

On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:

>

On 11/16/21 6:10 PM, pascal111 I think 'med' is by Walter Bright; he uses that editor daily.
Ali

Med is too simple,just for learn.
Actually, it's best to program with VIM,kinds of plugin.
I've been saying that D we should make a good plug-in on VIM/vscode.