Bug 213212 - mail/neomutt: Ctrl+arrow keys don't work
Summary: mail/neomutt: Ctrl+arrow keys don't work
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-04 23:53 UTC by Petr Fischer
Modified: 2018-01-15 07:00 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (bapt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Fischer 2016-10-04 23:53:11 UTC
Ctrl+arrow keys don't work in bottom edit line (while entering To: or while entering limit string etc.).

Normally - Ctrl+left/right arrow keys skip over words, don't work in neomutt. There is shown chars "[1;5C" or "[1;5D" for Ctrl+right/left arrow keys. 

Also, in freebsd port "mutt", I can bind keys like this:

bind index,pager <C-Up> sidebar-prev
bind index,pager <C-Down> sidebar-next
bind index,pager <C-Right> sidebar-open

These sidebar hotkeys don't work in "neomutt". It behaves like "unbinded" when I press them.

Is ".inputrc" needed for neomut "bottom edit/command line"?

Everything tested in xterm.
Comment 1 Baptiste Daroussin freebsd_committer 2016-11-26 14:17:42 UTC
I can confirm both issues, I have no time right now to dig into them
I have CCed gahr@ maybe he will have more time or insight :)
Comment 2 Pietro Cerutti freebsd_committer 2016-11-26 15:37:06 UTC
I am currently on a macbook, connected via ssh to a FreeBSD server, and running inside tmux on the server. I can skip words with alt-right and alt-left in the shell, and that works in neomutt too. I will test from a non-mac machine next week.

Unfortunately ctrl is intercepted by OSX, so I can't test the sidebar part either. Using esc instead of ctrl works, though. Can you please confirm that?
Comment 3 Petr Fischer 2016-11-26 19:57:29 UTC
Tests:

1) alt+left/right in xterm bash shell
This keys geneated "D" and "C" letters

2) alt+left/right in neomutt (in search input field)
Keys generated "[1;3D" and "[1;3C"

3) Ctrl+left/right keys in xterm bash shell (but I have this in .inputrc)
---
"\e[1;5C": forward-word   # ctrl + right
"\e[1;5D": backward-word  # ctrl + left
---
This keys are working (due to .inputrc config)

4) Ctrl+left/right keys in neomutt (in search input field)
Keys generated "[1;5D" and "[1;5C"

5) ESC instead of Ctrl key + up/down
Nothing. Key is not bound.

5) ESC + arrow keys in xterm bash shell generated this chars: "[B", "[A", "[D", "[C"
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-14 00:52:13 UTC
Is this still relevant?
Comment 5 Petr Fischer 2018-01-14 18:52:50 UTC
(In reply to w.schwarzenfeld from comment #4)

Yes.
Comment 6 Walter Schwarzenfeld freebsd_triage 2018-01-15 01:59:41 UTC
Did you try in neomuttrc?
bind pager <up> previous-line
bind pager <down> next-line
Comment 7 Petr Fischer 2018-01-15 07:00:15 UTC
Up and Down keys are OK. This keys (Ctrl+Arrow Keys) are not working (it's in my first comment here):

[.muttrc file]
...
bind index,pager <C-Up> sidebar-prev
bind index,pager <C-Down> sidebar-next
bind index,pager <C-Right> sidebar-open
...