[dev] [utmp][PATCH 3/3] Launch a login shell

2014-09-15 Thread Roberto E. Vargas Caballero
Since we are creating a utmp entry, it is logical to create a login shell --- utmp.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/utmp.c b/utmp.c index f551f9d..75c35f5 100644 --- a/utmp.c +++ b/utmp.c @@ -38,8 +38,10 @@ int main(int argc, char *argv[]) {

[dev] [utmp][PATCH 1/3] Change name of pass structure

2014-09-15 Thread Roberto E. Vargas Caballero
It is idiomatic the use of the simple pw instead of pass for variables of type struct pass. --- bsd.c | 8 posix.c | 8 utmp.c | 14 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bsd.c b/bsd.c index cb455a2..754d1d0 100644 --- a/bsd.c +++ b/

[dev] [utmp][PATCH 2/3] Copy test of getpwuid from st

2014-09-15 Thread Roberto E. Vargas Caballero
This part of the code is identicall to the code of st, and st does better tests that utmp was doing, so we take the code of st. --- utmp.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/utmp.c b/utmp.c index bda11d3..f551f9d 100644 --- a/utmp.c +++ b/utmp.c @@ -46,9

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

2014-09-15 Thread M Farkas-Dyck
On 15/09/2014, Maxime Coste wrote: > And for C++, well, I know there is some vocal individuals against it on the > sl mailing list, but I think most members are sensible, we do not need to > stay frozen with C89, C++ is bigger than C, more complex, but provides a lot > of abstraction features that

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

2014-09-15 Thread FRIGN
On Tue, 16 Sep 2014 00:12:58 +0100 Maxime Coste wrote: > Hard to resist talking about a project I spent most of my spare coding time > on for the last 3 years. Fair point. > I agree 18000 is not small, but not that big either, clearly reasonable > for the amount of things Kakoune does (and nope

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

2014-09-15 Thread Maxime Coste
Hi On Mon, Sep 15, 2014 at 11:50:52PM +0300, Dimitris Zervas wrote: > On September 15, 2014 6:41:29 PM EEST, q...@c9x.me wrote: > >On Mon, Sep 15, 2014 at 02:21:25PM +0100, Maxime Coste wrote: > >> Hello, > >> [...] > >> Maxime Coste. > > > >I like your advertisement man, keep it up :). > >I also

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

2014-09-15 Thread Lee Fallat
On Mon, Sep 15, 2014 at 6:13 PM, Dimitris Papastamos wrote: > On Mon, Sep 15, 2014 at 06:02:19PM -0400, Lee Fallat wrote: >> On Mon, Sep 15, 2014 at 5:52 PM, Dimitris Papastamos wrote: >> >> I want to code a text editor that is suckless and actually matters. If >> >> your implementation is bette

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

2014-09-15 Thread Dimitris Papastamos
On Mon, Sep 15, 2014 at 06:02:19PM -0400, Lee Fallat wrote: > On Mon, Sep 15, 2014 at 5:52 PM, Dimitris Papastamos wrote: > >> I want to code a text editor that is suckless and actually matters. If > >> your implementation is better, we better code for your project. > > > > FWIW, the only reason

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

2014-09-15 Thread Lee Fallat
On Mon, Sep 15, 2014 at 5:52 PM, Dimitris Papastamos wrote: >> I want to code a text editor that is suckless and actually matters. If your >> implementation is better, we better code for your project. > > FWIW, the only reason I liked sandy was because it was not yet another > vi clone. > > A nic

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

2014-09-15 Thread Dimitris Papastamos
> I want to code a text editor that is suckless and actually matters. If your > implementation is better, we better code for your project. FWIW, the only reason I liked sandy was because it was not yet another vi clone. A nice experimental and in-development editor is edit[0] [0] http://c9x.me/

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

2014-09-15 Thread Teodoro Santoni
On Mon, Sep 15, 2014 at 11:37:31PM +0300, Dimitris Zervas wrote: > I'm not telling it "in a bad way", but your project seems (from the comments, I haven't tried it yet) very promising and more worth coding than sandy. > Is that right? (question to sandy users too). > I want to code a text editor

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

2014-09-15 Thread Dimitris Zervas
>I don't think so, try to edit something like this: > > コンニチハ > >or this: > > printf "Hello\0World" > TEST && sandy TEST > >or this (not recommended): > > seq 1000 > TEST && sandy TEST > >Last time I looked the vim bindings weren't that powerful, for example >text object are not supported? As a

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

2014-09-15 Thread Dimitris Zervas
On September 15, 2014 6:41:29 PM EEST, q...@c9x.me wrote: >On Mon, Sep 15, 2014 at 02:21:25PM +0100, Maxime Coste wrote: >> Hello, >> [...] >> Maxime Coste. > >I like your advertisement man, keep it up :). >I also like advocating for change rather than >flavorless copy. > >- Q. Yes, I agree. I also

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

2014-09-15 Thread Andrew Hills
On 9/15/14, 3:03 PM, Marc André Tanner wrote: > This is true to some degree. The problem is that most people are already > familiar with vi(m) (myself included). Therefore the hope is that by sticking > to the vim conventions more contributors will be attracted. As for my personal > needs they are

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

2014-09-15 Thread Marc André Tanner
On Mon, Sep 15, 2014 at 02:21:25PM +0100, Maxime Coste wrote: > Hello, > > Here are a few thought on your design, based on my own experience with > Kakoune. Thanks for sharing them! Kakoune looks interesting. At some later point I will take a closer look. > On Sat, Sep 13, 2014 at 04:01:15PM +

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

2014-09-15 Thread Claudio
Thanks Marc, I still have much to learn, but I already love vis. Regards, Claudio 2014-09-15 17:06 GMT+00:00 Amadeus Folego : > On Mon, Sep 15, 2014 at 06:52:07PM +0200, Marc André Tanner wrote: >> Hi Caudio, >> >> Thanks, will incorporate your requested functionality. >> >> On Sun, Sep 14, 201

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

2014-09-15 Thread Marc André Tanner
On Mon, Sep 15, 2014 at 10:49:09AM +0300, Dimitris Zervas wrote: > On September 13, 2014 5:01:15 PM EEST, "Marc André Tanner" > wrote: > >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

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

2014-09-15 Thread Amadeus Folego
On Mon, Sep 15, 2014 at 06:52:07PM +0200, Marc André Tanner wrote: > Hi Caudio, > > Thanks, will incorporate your requested functionality. > > On Sun, Sep 14, 2014 at 06:25:30PM +0200, Claudio wrote: > > @@ -93,8 +93,10 @@ static KeyBinding basic_movement[] = { > > { { KEY(SRIGHT)

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

2014-09-15 Thread Marc André Tanner
On Sun, Sep 14, 2014 at 09:02:30PM -0500, M Farkas-Dyck wrote: > On 13/09/2014, Marc André Tanner wrote: > > The default interface is a vim clone called vis. > > Name clash on BSD [1][2][3] This is somewhat unfortunate but the opportunity was too good not to make a reference to vis[0] (due to th

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

2014-09-15 Thread Marc André Tanner
Hi Caudio, Thanks, will incorporate your requested functionality. On Sun, Sep 14, 2014 at 06:25:30PM +0200, Claudio wrote: > @@ -93,8 +93,10 @@ static KeyBinding basic_movement[] = { > { { KEY(SRIGHT) }, movement, { .i = MOVE_WORD_START_NEXT > } }, > { { KEY(UP)

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

2014-09-15 Thread q
On Mon, Sep 15, 2014 at 02:21:25PM +0100, Maxime Coste wrote: > Hello, > [...] > Maxime Coste. I like your advertisement man, keep it up :). I also like advocating for change rather than flavorless copy. - Q.

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

2014-09-15 Thread Dmitrij D. Czarkoff
Marc André Tanner said: > Editor Frontends > > > The editor core is written in a library like fashion which should make > it possible to write multiple frontends with possibly different user > interfaces/paradigms. > > At the moment there exists a barely functional, non-modal n

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

2014-09-15 Thread Maxime Coste
Hello, Here are a few thought on your design, based on my own experience with Kakoune. On Sat, Sep 13, 2014 at 04:01:15PM +0200, Marc André Tanner wrote: > Text management using a piece table/chain > = > > [...] While this looks like a nice data structure

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

2014-09-15 Thread Christian Hesse
Dimitris Zervas on Mon, 2014/09/15 10:49: > On September 13, 2014 5:01:15 PM EEST, "Marc André Tanner" > wrote: > >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-15 Thread Dimitris Zervas
On September 13, 2014 5:01:15 PM EEST, "Marc André Tanner" wrote: >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 end of this rather long mail. Take a look at sandy [