[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Use right top corner to display nano state
From: |
pepa65 |
Subject: |
Re: [RFC] Use right top corner to display nano state |
Date: |
Mon, 11 May 2020 00:30:33 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
> Op 20-04-2020 om 17:24 schreef Marco Diego Aurélio Mesquita:
> > Attached path implements what is asked for in
> > https://savannah.gnu.org/bugs/?57953 .
>
> The attached patch optionally displays some chars on the top-right
> corner of the screen. The chars are "* M I S H" and each one
> correspond the a flag:
> * is displayed when the current buffer is modified,
> M is displayed when a macro is being recorded,
> I is displayed when auto-indent is enabled,
> S is displayed when there is a part of the current buffer that is
> selected/marked,
> H is displayed when hardwraping is enabled.
I applied the patch to fd70c25d2173aeb2c68d08c60c6f4b4fd4283c87 and
added `set showstate` to .nanorc.
I like to have this information on-screen when using nano, and if
certain features are never used (like BREAK_LONG_LINES in my case), they
won't show their letters either.
I think having the configuration set up like:
set showstates modified,macro,indent,mark,hardwrap
(the user can leave out any state they never want to see marked) would
give more configurability. If `set showstates modified,mark,macro` is
configured, then the final position could be marked with M or space, the
position before that with S or space, and the position before that with
* or space. This would take less space and improve predictability for
the users.
But however it is going to be implemented, I would definitely turn it on!
Thank you, Marco, and Benno for considering it.
Peter
- Re: [RFC] Use right top corner to display nano state,
pepa65 <=