This commit is contained in:
Rouven Seifert 2023-01-27 12:32:08 +01:00
parent 90a4a758d0
commit 414de1154d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 41 additions and 3 deletions

View file

@ -6,6 +6,7 @@ in
home.packages = with pkgs; [
imv
w3m
urlview
];
services.mbsync.enable = true;
programs = {
@ -21,6 +22,7 @@ in
# Open the highlighted mailbox
bind index,pager <space><return> sidebar-open
set mailcap_path = ${./mailcap}
source ${./vim-keys.rc}
source ${./dracula.muttrc}
source ${./powerline.neomuttrc}
'';
@ -140,6 +142,7 @@ in
};
};
};
home.file.".urlview".text = ''
COMMAND google-chrome-stable %s &> /dev/null
'';
}

View file

@ -1,4 +1,4 @@
text/plain; $EDITOR %s ;
text/plain; w3m -I %{charset} -T text/plain; copiousoutput;
text/html; w3m -I %{charset} -T text/html; copiousoutput;
image/*; setsid imv %s >/dev/null & ;
video/*; setsid mpv --quiet %s >/dev/null &;

View file

@ -0,0 +1,35 @@
#------------------------------------------------------------
# Vi Key Bindings
#------------------------------------------------------------
# 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
# 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