lichray / nvi2

A multibyte fork of the nvi editor for BSD
Other
144 stars 34 forks source link

Add showfilename configuration option #129

Closed job closed 6 months ago

job commented 6 months ago

When having a few instances of vi open next to each other (using a window manager), pressing control-G all the time to understand 'what file is in what window' is tedious. Instead, offer a configurable option (default off) to display the file name in the lower left corner.

job commented 6 months ago

A similar patch was accepted into OpenBSD's vi implementation https://github.com/openbsd/src/commit/211058dfe1741937a159d60824c94ca470580b2a

lichray commented 6 months ago
/[...]/vi/vs_refresh.c:798:34: error: use of undeclared identifier 'O_SHOWFILENAME'
        if (IS_SPLIT(sp) || O_ISSET(sp, O_SHOWFILENAME)) {
                                        ^
job commented 6 months ago

@lichray whoops! Better now?

lichray commented 6 months ago

Works great. Thank you!