Re: Simple text editor program

2021-11-17 Thread zjh via Digitalmars-d-learn

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`.







Re: Simple text editor program

2021-11-17 Thread bachmeier via Digitalmars-d-learn
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


Re: Simple text editor program

2021-11-17 Thread bachmeier via Digitalmars-d-learn

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


Re: Simple text editor program

2021-11-17 Thread Ali Çehreli via Digitalmars-d-learn

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



Re: Simple text editor program

2021-11-17 Thread Dr Machine Code via Digitalmars-d-learn

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?


Re: Simple text editor program

2021-11-17 Thread Adam D Ruppe via Digitalmars-d-learn

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/dyvhplzvsoojwkypd...@forum.dlang.org

Of course most the functions are just stubs.


Re: Simple text editor program

2021-11-16 Thread Ali Çehreli via Digitalmars-d-learn

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


Simple text editor program

2021-11-16 Thread pascal111 via Digitalmars-d-learn
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.