nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] Multipane support


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] Multipane support
Date: Sun, 10 Sep 2017 17:18:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1


Op  4-09-2017 om 06:27 schreef Marco Diego Aurélio Mesquita:
The attached patch implements multipane support in nano. I don't know
how far it is from been acceptable, but it is already fully
functional. It is still very hacky right now. I'm sending this patch
just to gauge interest in such a feature and to get feedback.

Interesting.  But... this is not going in unless people clamor for it.

Also, I don't think it can be made to work colorwise.  Try this:

  src/nano +1 src/text.c +1 doc/faq.html

Press M-1 to get the second pane.  Notice the reds and yellows in the
second pane.  Now press ^X.  The colors change to cyan and red instead,
as they should be.  Run the same command again, press M-1, then M-2,
then M-1 again.  Now the false colors stay.  :|

Now run nano with the files reversed:

  src/nano +1 doc/faq.html +1 src/text.c

Press M-1.  See how the comment block in the second pane is all grey
instead of blue.  Press ^X.  The comment block changes to blue, as it
should.  But not entirely (not on an Xfce terminal -- on a VT yes): the
things where ncurses thinks nothing has changed stay grey.

The above problem will not be easy to fix: it would require initializing
the syntaxes for both panes at the same time, without stepping on each
other...  Let's not go there.

The patch as-is has further defects.  Run for example:

  src/nano  --linenum  +1 doc/faq.html +1 src/text.c

Press M-1 to switch on double-pane.  Then hold Shift and press <Down>
several times.  See how the row below the cursor disappears into a
void.  Release Shift and press an arrow key.  The row returns.  Now
hold Shift and press <Up> several times.  All the rows that have been
below the cursor disappear.  :|

So...  Let's forget it.

Benno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]