Re: [dev] [RFC] Design of a vim like text editor

2014-09-14 Thread M Farkas-Dyck
On 13/09/2014, Marc André Tanner wrote: > The default interface is a vim clone called vis. Name clash on BSD [1][2][3] [1] https://www.freebsd.org/cgi/man.cgi?query=vis&apropos=0&sektion=0&manpath=FreeBSD+10.0-RELEASE&arch=default&format=html [2] http://www.openbsd.org/cgi-bin/man.cgi?query=vis

[dev] Re: [vis][PATCH] Window line up/down

2014-09-14 Thread Claudio
Sorry for all these mails, I'm trying to make things better as I understand how things works. Attached is a fully working patch which allow to scroll the page up/down by one line. Regards, Claudio Alessi 2014-09-14 18:37 GMT+02:00 Claudio : > Here is the patch containing window_scroll_line_up()

[dev] Re: [vis][PATCH] Window line up/down

2014-09-14 Thread Claudio
Here is the patch containing window_scroll_line_up() and window_scroll_line_down(). Regards, Claudio 2014-09-14 18:31 GMT+02:00 Claudio : > Okay, I just noticed that the original behaviour of window_line_*() is > different than the one I thought. It's used by the j and k commands so > I'll need t

[dev] Re: [vis][PATCH] Window line up/down

2014-09-14 Thread Claudio
Okay, I just noticed that the original behaviour of window_line_*() is different than the one I thought. It's used by the j and k commands so I'll need two new ad-hoc routines for ^y and ^e. Regards, Claudio Alessi 2014-09-14 18:25 GMT+02:00 Claudio : > Hi, > > thank you for writing vis. I would

[dev] [vis][PATCH] Window line up/down

2014-09-14 Thread Claudio
Hi, thank you for writing vis. I would ask if the attached patch makes sense to you. Now window_line_up() and window_line_down() works properly and I can add the following key bindings: { { CONTROL('y')}, cursor, { .m = window_line_up } }, { { CONTROL('e')}, curs

Re: [dev] Re: [RFC] Design of a vim like text editor

2014-09-14 Thread q
On Sun, Sep 14, 2014 at 11:23:56AM +0200, Marc Andr? Tanner wrote: > On Sat, Sep 13, 2014 at 04:39:15PM +0200, Christian Neukirchen wrote: > > o seems to be broken on the last line. > > This and other issues related to movements / modifications at end of > the file are likely fixed now. For exampl

Re: [dev] [RFC] Design of a vim like text editor

2014-09-14 Thread Allan
  Original Message   From: Marc André Tanner Sent: Sunday, 14 September 2014 10:43 To: Christian Hesse Reply To: dev mail list Cc: dev@suckless.org Subject: Re: [dev] [RFC] Design of a vim like text editor On Sat, Sep 13, 2014 at 11:32:44PM +0200, Christian Hesse wrote: > Marc André Tanner on S

Re: [dev] [RFC] Design of a vim like text editor

2014-09-14 Thread Marc André Tanner
On Sat, Sep 13, 2014 at 11:32:44PM +0200, Christian Hesse wrote: > Marc André Tanner on Sat, 2014/09/13 16:01: > > TLDR: I'm writing an experimental but (hopefully) highly efficient vim > > like text editor based on a piece chain data structure. You will find > > an url to a git repository at the

Re: [dev] [RFC] Design of a vim like text editor

2014-09-14 Thread Marc André Tanner
On Sat, Sep 13, 2014 at 04:58:35PM +0200, FRIGN wrote: > I have got one question though: When you are talking about Unicode-awareness, > are you talking about UTF-8 or more complex sets? Just UTF-8. The internals asume it in some cases to move from one character to the next. > > It is possible t

Re: [dev] Re: [RFC] Design of a vim like text editor

2014-09-14 Thread Marc André Tanner
On Sat, Sep 13, 2014 at 04:39:15PM +0200, Christian Neukirchen wrote: > o seems to be broken on the last line. This and other issues related to movements / modifications at end of the file are likely fixed now. For example Ctrl+w at the end of the command prompt now also works as expected. -- M