From e77d0649f54bffca84cf5e5b55265f3bc0ca5c42 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 12 Jul 2026 03:29:20 +0530 Subject: feat(neomutt): some more keybinding changes to neomutt ∙ ∙ added a help view keybinding g? ∙ using ctrl+d and ctrl+u for half page scrolling ∙ using continious scrolling ∙ added year to the date of emails list in index page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/programs/neomutt/default.nix | 18 ++++++++++++++++-- modules/programs/neomutt/theme.nix | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/programs/neomutt/default.nix b/modules/programs/neomutt/default.nix index 30d3b11..b144af0 100644 --- a/modules/programs/neomutt/default.nix +++ b/modules/programs/neomutt/default.nix @@ -83,6 +83,8 @@ in checkStatsInterval = 20; extraConfig = '' + set menu_scroll = yes + # cancel any prompt/command-line entry with Esc, vim-style set abort_key = "" @@ -270,12 +272,12 @@ in { map = [ "index" ]; key = "\\Cd"; - action = "next-page"; + action = "half-down"; } { map = [ "index" ]; key = "\\Cu"; - action = "previous-page"; + action = "half-up"; } # --- search (vim: / forward, ? backward, n/N repeat) --- @@ -356,6 +358,18 @@ in key = "gt"; action = "next-unread-mailbox"; } + + # --- help message to show functions and keybindings --- + { + map = [ + "index" + "pager" + "browser" + "attach" + ]; + key = "g?"; + action = "help"; + } ]; macros = [ diff --git a/modules/programs/neomutt/theme.nix b/modules/programs/neomutt/theme.nix index f83004c..b770975 100644 --- a/modules/programs/neomutt/theme.nix +++ b/modules/programs/neomutt/theme.nix @@ -9,7 +9,7 @@ # Base16 OneDark Dark terminal colors for neomutt # Each column in the index receives a distinct color to keep the UI organized. - set index_format = " %5C │ %Z │ %{%d/%m %H:%M} │ %-25.25a │ %s%* " + set index_format = " %5C │ %Z │ %{%d/%m/%y %H:%M} │ %-25.25a │ %s%* " # Hide the keybindings help bar at the top to save vertical space set help = no -- cgit v1.2.3