nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] add rebinding for Ctrl+Arrow-keys combinations


From: Rishabh Dave
Subject: Re: [Nano-devel] [PATCH] add rebinding for Ctrl+Arrow-keys combinations
Date: Sun, 21 Aug 2016 21:10:50 +0530

On Sun, Aug 21, 2016 at 3:47 PM, Benno Schulenberg
<address@hidden> wrote:
>
> On Sun, Aug 21, 2016, at 09:00, Rishabh Dave wrote:
>> Attached patch fixes issue of colouring in rcfiles
>
> Incorrect.  You changed
>   ((\^|M-)([[:alpha:]]|space|...
> to
>   ((\^)(Up|Down|Right|Left|space|...
>
> which means that now any ^X and M-X stay red.

No, no; I added
    ((\^)(Up|Down|Right|Left|space|...
after this
    ((\^|M-)([[:alpha:]]|space|...


There are 4 icolor brightgreen statements and after applying the patch
there are 6 i.e. patch adds one more pair of bind and unbind
statements.

Originally, I wanted an exclusive or between them that is  -  (\^ | M
)|[[:alpha:]]   EX-OR  (\^)(Up | Down | Right | Left). But couldn't
find one ex-or regex operator.

>> About translations, some even go as far as 10 characters. (I
>> translated 'right', 'right side', 'right hand' individually for the
>> languages we have translated for nano). One alternative could be to
>> keep Up, Down, Right, Left as it is and mention their translation
>> elsewhere (at bottom, for example).
>
> Awkward.  How is the user to know that some things are explained
> at the end?  Add a reference?  Clumsy.
>
> No, one idea would be to "translate" those words to actual arrows,
> so that we will show:
>
> ←  and  ^←
> →  and  ^→
> ↑  and  ^↑
> ↓  and  ^↓
>
> For example:
>
> ^B    (←)       Reculer d'un caractère
> ^F    (→)       Avancer d'un caractère
>
> However, that will only work in a UTF-8 locale (which most people
> using a translated nano will use, but still...).  And it doesn't
> cover Home, End, PgUp, PgDn.  For the first two we could use maybe
> ⍇ and ⍈, but for the latter... I don't know.
>

Why are we looking forward to translate Home, End, etc.? I mean, they
have been in help for a long time. Are these keys too have a pending
translation or issue arises (somehow) due to make arrow keys
rebindable.

>> I think most people irrespective of their first language would
>> recognize basic words in English, especially for those who are giving
>> up their comfort to know and use a platform based on GNU/Linux.
>
> Ouch.  You are saying that using a GNU/Linux system is a discomfort?
>
> :)

Assumption may be stupid but I feel it just might work.



reply via email to

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