{ pkgs, ... }: { global = { "" = ":prev-tab"; "" = ":prev-tab"; "" = ":next-tab"; "" = ":next-tab"; "" = ":term"; "?" = ":help keys"; "" = ":prompt 'Quit?' quit"; }; messages = { "q" = ":quit"; "j" = ":next"; "" = ":next"; "" = ":next 50%"; "" = ":next 100%"; "" = ":next 100%"; "k" = ":prev"; "" = ":prev"; "" = ":prev 50%"; "" = ":prev 100%"; "" = ":prev 100%"; "gg" = ":select 0"; "G" = ":select -1"; "gi" = ":cf Inbox"; "gs" = ":cf Sent"; "gd" = ":cf Drafts"; "ga" = ":cf Archive"; "gS" = ":cf Spam"; "gb" = ":cf Bin"; "Mi" = ":move Inbox"; "Ms" = ":move Sent"; "Md" = ":move Drafts"; "Ma" = ":move Archive"; "MS" = ":move Spam"; "Mb" = ":move Bin"; "J" = ":next-folder"; "" = ":next-folder"; "" = ":next-folder"; "K" = ":prev-folder"; "" = ":prev-folder"; "" = ":prev-folder"; "H" = ":collapse-folder"; "" = ":collapse-folder"; "" = ":collapse-folder"; "L" = ":expand-folder"; "" = ":expand-folder"; "" = ":expand-folder"; "v" = ":mark -t"; "" = ":mark -t:next"; "V" = ":mark -v"; "m" = ":read -t"; "," = ":read"; "." = ":unread"; "t" = ":toggle-threads"; "T" = ":toggle-thread-context"; "zc" = ":fold"; "zo" = ":unfold"; "za" = ":fold -t"; "zM" = ":fold -a"; "zR" = ":unfold -a"; "" = ":view"; "d" = ":read:move Bin"; "D" = ":prompt 'Really delete this message?' 'delete-message'"; "" = ":read:move Spam"; "a" = ":read:archive flat"; "A" = ":unmark -a:mark -T:read:archive flat"; "c" = ":compose"; "rr" = ":reply -a"; "rq" = ":reply -aq"; "Rr" = ":reply"; "Rq" = ":reply -q"; "f" = ":cf"; "$" = ":term"; "!" = ":term"; "|" = ":pipe"; "/" = ":search"; "\\" = ":filter"; "n" = ":next-result"; "N" = ":prev-result"; "" = ":clear"; "" = ":check-mail"; "" = ":mark -a"; "e" = ":envelope"; "E" = ":envelope -h"; "s" = ":exec mu find --clearlinks --format=links --linksdir=~/mail/search/results"; }; "messages:folder=Drafts" = { "" = ":recall"; }; view = { "/" = ":toggle-key-passthrough/"; "q" = ":close"; "O" = ":open"; "o" = ":open"; "c" = ":pipe khal import --batch"; "C" = ":open ${pkgs.libsForQt5.kitinerary}/libexec/kf5/kitinerary-extractor -o ical {} | khal import --batch"; "S" = ":save"; "|" = ":pipe"; "d" = ":read:move Bin"; "D" = ":prompt 'Really delete this message?' 'delete-message'"; "" = ":read:move Spam"; "a" = ":read:archive flat"; "A" = ":unmark -a:mark -T:read:archive flat"; "" = ":open-link "; "f" = ":forward"; "rr" = ":reply -a"; "rq" = ":reply -aq"; "Rr" = ":reply"; "Rq" = ":reply -q"; "H" = ":toggle-headers"; "" = ":prev-part"; "" = ":prev-part"; "" = ":next-part"; "" = ":next-part"; "J" = ":next"; "" = ":next"; "K" = ":prev"; "" = ":prev"; "e" = ":envelope"; "E" = ":envelope -h"; }; "view::passthrough" = { "$noinherit" = "true"; "$ex" = ""; "" = ":toggle-key-passthrough"; }; compose = { "$noinherit" = "true"; "$ex" = ""; "" = ":cc"; "" = ":bcc"; "" = ":prev-field"; "" = ":prev-field"; "" = ":next-field"; "" = ":next-field"; "" = ":switch-account -p"; "" = ":switch-account -p"; "" = ":switch-account -n"; "" = ":switch-account -n"; "" = ":prev-tab"; "" = ":prev-tab"; "" = ":next-tab"; "" = ":next-tab"; "" = ":next-field"; "" = ":prev-field"; "" = ":attach -m"; "" = ":abort"; }; "compose::editor" = { "$noinherit" = "true"; "$ex" = ""; "" = ":prev-field"; "" = ":prev-field"; "" = ":next-field"; "" = ":next-field"; "" = ":switch-account -p"; "" = ":switch-account -n"; "" = ":prev-tab"; "" = ":prev-tab"; "" = ":next-tab"; "" = ":next-tab"; "" = ":attach -m"; "" = ":abort"; }; "compose::review" = { "y" = ":send"; "Y" = ":send -a flat"; "q" = ":abort"; "v" = ":preview"; "p" = ":postpone"; "e" = ":edit"; "a" = ":attach -m"; "d" = ":detach"; }; "compose::review:folder=Inbox" = { "y" = ":send -a flat"; "Y" = ":send"; }; terminal = { "$noinherit" = "true"; "$ex" = ""; "" = ":prev-tab"; "" = ":next-tab"; "" = ":prev-tab"; "" = ":next-tab"; }; "messages:account=ryangibb321@gmail.com" = { "ga" = ":cf [Gmail]/'All Mail'"; "gs" = ":cf [Gmail]/'Sent Mail'"; "Ma" = ":move [Gmail]/'All Mail'"; "Ms" = ":move [Gmail]/'Sent Mail'"; }; }