From 7b54974e4cf197a94ed35662873c715be8dff59b Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Wed, 24 Nov 2021 14:16:32 +0200 Subject: [PATCH] add vim like keybindings --- .config/neomutt/neomuttrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index 23fb0a4..ba18649 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -66,6 +66,43 @@ bind index,pager \CN sidebar-next # Ctrl-Shift-O – Open Highlighted Mailbox bind index,pager \CO sidebar-open +# from https://uttarayan.me/posts/setting-up-neomutt/ +# Moving around +bind attach,browser,index g noop +bind attach,browser,index gg first-entry +bind attach,browser,index G last-entry +bind pager g noop +bind pager gg top +bind pager G bottom +bind pager k previous-line +bind pager j next-line + +# Scrolling +# bind attach,browser,pager,index \CF next-page +# bind attach,browser,pager,index \CB previous-page + +bind attach,browser,pager,index \Cu half-up +bind attach,browser,pager,index \Cd half-down +bind browser,pager \Ce next-line +bind browser,pager \Cy previous-line +bind index \Ce next-line +bind index \Cy previous-line + +bind pager,index d noop +bind pager,index dd delete-message + +# bind index \Cm list-reply # Doesn't work currently + + +# Threads +bind browser,pager,index N search-opposite +bind pager,index dT delete-thread +bind pager,index dt delete-subthread +bind pager,index gt next-thread +bind pager,index gT previous-thread +bind index za collapse-thread +bind index zA collapse-all # Missing :folddisable/foldenable + set sidebar_visible set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%S" set sidebar_divider_char = '█'