Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind <ctrl-o> to sidebar-open not working. #1195

Closed
d0u9 opened this issue May 10, 2018 · 3 comments
Closed

bind <ctrl-o> to sidebar-open not working. #1195

d0u9 opened this issue May 10, 2018 · 3 comments

Comments

@d0u9
Copy link

d0u9 commented May 10, 2018

bug reports

  • Expected behavior
    open sidebar mailbox after pressing

  • Actual behavior
    Nothing happen

  • Steps to reproduce
    append

    bind index,pager \Cj sidebar-next
    bind index,pager \Ck sidebar-prev
    bind index,pager \Co sidebar-open
    

    to muttrc.

  • Used program versions

NeoMutt 20180323
Copyright (C) 1996-2016 Michael R. Elkins and others.
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Darwin 17.5.0 (x86_64)
ncurses: ncurses 5.7.20081102 (compiled with 5.7)
libiconv: 1.11
libidn: 1.34 (compiled with 1.33)
hcache backends: tokyocabinet, lmdb

Compiler:
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Configure options: --prefix=/usr/local/Cellar/neomutt/20180323 --enable-gpgme --gss --lmdb --notmuch --sasl --tokyocabinet --with-ssl=/usr/local/opt/openssl --with-ui=ncurses

Compilation CFLAGS: -g -O2 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/Cellar/neomutt/20180323/include -DNCURSES_WIDECHAR -I/usr/local/opt/openssl/include

Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash

Compile options:
  +bkgdset +color +curs_set +fcntl -flock -fmemopen +futimens +getaddrinfo
  -gnutls +gpgme +gss +hcache -homespool +idn -locales_hack -lua +meta
  -mixmaster +nls +notmuch +openssl +pgp +sasl +smime +start_color
  +sun_attachment +typeahead
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/Cellar/neomutt/20180323/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/usr/local/Cellar/neomutt/20180323/etc"

To learn more about NeoMutt, visit: https://www.neomutt.org
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <neomutt-devel@neomutt.org>
  • Operating System and its version
macOS High Sierra 10.13.4

After binding keys, in mutt the keybinding is reported as:

<Enter>                                    sidebar-next                                           move the highlight to next mailbox
^K                                         sidebar-prev                                           move the highlight to previous mailbox
^O                                         sidebar-open                                           open highlighted mailbox

sidebar-next is bond to , but works.

@flatcap
Copy link
Member

flatcap commented May 10, 2018

Hi @d0u9

macOS High Sierra 10.13.4

I think macOS' Terminal uses Ctrl-O for "flow control".
Try running: stty discard undef in the terminal before NeoMutt.

Side note for Linux Users:
Some other terminals need stty flush undef instead.

@d0u9
Copy link
Author

d0u9 commented May 10, 2018

@flatcap Works! Thank you sincerely.

@d0u9 d0u9 closed this as completed May 10, 2018
FernandoBasso added a commit to FernandoBasso/dotfiles that referenced this issue Jul 19, 2021
Note `ctrl+shift+esc` does not work in MacOS for some reason.
`Ctrl-<something>` works with some key combinations, not with others.

As a side note, Neomutt was not responding to `Ctrl+O` to open the
current selected sidebar item, and running

  $ stty discard undef

before running Neomutt solved the issue. Did not seem to work for making
`Ctrl+<things>` work with Kitty.

REFERENCES:
• neomutt/neomutt#1195 (comment)
@jonnyhtw
Copy link

Hi @d0u9

macOS High Sierra 10.13.4

I think macOS' Terminal uses Ctrl-O for "flow control". Try running: stty discard undef in the terminal before NeoMutt.

Side note for Linux Users: Some other terminals need stty flush undef instead.

genius! thanks had this problem with mutt (not neomutt) on osx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants