Re: is there no difference between \CN and \Cn for use in the sidebar?

2020-11-10 Thread Cameron Simpson
On 11Nov2020 01:18, Globe Trotter via Mutt-users  wrote:
>I have the following set up in my .muttrc:
[...]
># Move the highlight to the next mailbox
>bind index,pager \Cn sidebar-next
># Move the highlight to the next mailbox containing new, or flagged, mail.
>bind index,pager \CN sidebar-next-new
[...]
>So, when I use \Cn, I seem to end on to the next mailbox containing new or 
>flagged mail and not the next mailbox. By, \Cn, I mean Ctrl+n (lower case n).
>Same when i use \CN.
>
>Is my specification incorrect?

Only in that there's no such thing as control-uppercase-N (as a distinct 
thing from control-lowercase-n).

Under a windowing system you can probably bind such a thing (see the "n" 
key down, observe both shift and control held down as modifiers) 
- that is a physical key combination.

However, in a terminal the control characters are those bytes with 
values 0-31.  When you type ctrl-n, that corresponds to ord('n') % 32, 
i.e. a value from 0-31. Regardless of "n" or "N". There's no indication 
to mutt of the physical keys being operated, just bytes coming down the 
"serial" line from the terminal.

So \Cn and \CN deliver the same byte value.

Cheers,
Cameron Simpson 


is there no difference between \CN and \Cn for use in the sidebar?

2020-11-10 Thread Globe Trotter via Mutt-users
HI,

I have the following set up in my .muttrc:

# Move the highlight to the previous mailbox
bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next
# Open the highlighted mailbox
bind index,pager \Co sidebar-open
# Move the highlight to the previous page
bind index,pager \CU sidebar-page-up
# Move the highlight to the next page
bind index,pager \CD sidebar-page-down
# Move the highlight to the previous mailbox containing new, or flagged, mail.
bind index,pager \CP sidebar-prev-new
# Move the highlight to the next mailbox containing new, or flagged, mail.
bind index,pager \CN sidebar-next-new
# Toggle the visibility of the Sidebar.
bind index,pager \CV sidebar-toggle-visible

So, when I use \Cn, I seem to end on to the next mailbox containing new or 
flagged mail and not the next mailbox. By, \Cn, I mean Ctrl+n (lower case n).
Same when i use \CN. 

Is my specification incorrect?

Many thanks!