nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] File tabs


From: Brand Huntsman
Subject: Re: [Nano-devel] File tabs
Date: Mon, 4 Dec 2017 02:09:08 -0700

On Fri, 1 Dec 2017 19:27:21 +0100
Benno Schulenberg <address@hidden> wrote:

> When I edit multiple files, I normally do something like 'nano
> src/*.c', which means that a third of the title bar gets filled with
> src/ src/ src/. So at the very least, the patch should display only
> the basename of the given files, not their full paths.

But then when you do 'nano */file' you get a titlebar full of 'file file file'. 
Stripping the path should only happen if all files share the same path. Or 
strip path from all but the ones with the same filename, but shared parts of 
the path could be stripped from them. So 'src/a/file' and 'src/b/file' become 
'a/file' and 'b/file'. This should be recomputed when a file is opened in a new 
buffer, a file is renamed in an open buffer, or when a buffer is closed.


> I think it should "scroll" the entire title bar to the left so that
> the name of the current buffer can be fully displayed at the right.
> 
> Instead of the brackets, I would prefer a color highlight.  This
> should probably be configurable: if a "tabcolor" is set, use that
> color, if not, use brackets.

I agree with the scrolling, but there should also be some indicator between 
every filename in the titlebar, such as a bold '|', because filenames can have 
spaces in them. And filename for current buffer could be bold by default 
instead of using brackets, the modified asterisk should also be bold. If bold 
isn't supported by the terminal (I believe ncurses can detect this) then 
brackets could be used. The modified asterisk and '|' should have options to 
set their colors. Maybe even a configurable character for '|' so someone could 
change it to a space and give it the inverse color of the normal titlebar to 
create gaps between filenames.

file 1 | file 2 | file 3*




reply via email to

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