[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] state flag related modifications - TAB key status
From: |
pepa65 |
Subject: |
Re: [PATCH] state flag related modifications - TAB key status |
Date: |
Wed, 23 Dec 2020 13:13:46 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 23/12/2020 12.52, ObeliX wrote:
> I often work on projects, where switching between tab-indention and
> space-indention is needed. thus I frequently have to verify the current
> TAB-mode when using nano. usually I type a TAB and then go back one step
> with the cursor to see if it goes back one char or jumps back tabwidth.
> but that is quite cumbersome. and having ON whitespaces all the time is
> not valid option too.
For indenting I always prefer tabs (also in python, and I boycot
languages that enforce spaces), so I would always have a T... Which is
the normal behaviour generally, for Tab to give out a tab.
I would suggest nothing/clear if Tb gives a \t, and 's' when Tab gives
out a number of spaces according to tabsize. So the display options for
this flag position would be:
- 't' to indicate the 'tabgives' text is used when Tab is pressed
- '-' to indicate 'tabgives' is empty (special case of 't' I suppose?).
- 's' to indicate 'tabsize' spaces will be inserted on Tab
- ' '/clear/nothing to indicate \t will be issued (the standard case).
This avoids clutter for the normal user, and serves those that use
'tabgives' or 'tabtospaces'.
Cheers,
Peter
- [PATCH] state flag related modifications, ObeliX, 2020/12/21
- Re: [PATCH] state flag related modifications, Benno Schulenberg, 2020/12/21
- Re: [PATCH] state flag related modifications, Benno Schulenberg, 2020/12/21
- Re: [PATCH] state flag related modifications, Benno Schulenberg, 2020/12/21
- Re: [PATCH] state flag related modifications, Benno Schulenberg, 2020/12/21
- Re: [PATCH] state flag related modifications - TAB key status, ObeliX, 2020/12/23
- Re: [PATCH] state flag related modifications - TAB key status,
pepa65 <=
- Re: [PATCH] state flag related modifications - TAB key status, Benno Schulenberg, 2020/12/24
- Re: [PATCH] state flag related modifications - TAB key status, ObeliX, 2020/12/26
- Re: how to represent the TAB key status, Benno Schulenberg, 2020/12/27
- Re: how to represent the TAB key status, ObeliX, 2020/12/28
- Re: how to represent the TAB key status, Benno Schulenberg, 2020/12/28