{ config, lib, ... }: { config.programs.neomutt.binds = lib.mkIf config.communication.neomutt.enable [ { map = [ "index" "pager" ]; key = "O"; action = "set my_wait_key=$wait_key wait_key=no${lib.getExe config.scripts.neomutt-sync.package}set wait_key=$my_wait_key"; } { # gx: extract links from the current message and open one, vim-netrw style map = [ "index" "pager" ]; key = "gx"; action = "urlscan"; } { map = [ "index" "pager" ]; key = "gl"; action = "less ~/.config/neomutt/flag_legend.txt"; } { # ZZ: save and quit, vim-style (sync mailbox, then quit) map = [ "index" ]; key = "ZZ"; action = ""; } ]; }