summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-09 12:12:58 +0200
committerlassulus <lass@blue.r>2018-09-09 19:16:12 +0200
commite5b5fffa32f942d4471b0c21be76ba4b70116af0 (patch)
tree5d98b2e7d07d0032bcc1bde4289b8b0021f2297f /lass/2configs
parent2762b34abd440c802eb76cefbd3d5a6c4c7a4e80 (diff)
l mail: change keybinding for show/mide of bars
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/mail.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix
index 2bb51b50a..9246abfed 100644
--- a/lass/2configs/mail.nix
+++ b/lass/2configs/mail.nix
@@ -176,6 +176,11 @@ let
# top index bar in email view
set pager_index_lines=7
+ # top_index_bar toggle
+ macro pager ,@1 "<enter-command> set pager_index_lines=0; macro pager ] ,@2 'Toggle indexbar<Enter>"
+ macro pager ,@2 "<enter-command> set pager_index_lines=3; macro pager ] ,@3 'Toggle indexbar<Enter>"
+ macro pager ,@3 "<enter-command> set pager_index_lines=7; macro pager ] ,@1 'Toggle indexbar<Enter>"
+ macro pager ] ,@1 'Toggle indexbar
# sidebar
set sidebar_width = 20
@@ -186,9 +191,9 @@ let
bind index <right> sidebar-next # got to next folder in sidebar
bind index <space> sidebar-open # open selected folder from sidebar
# sidebar toggle
- macro index ,@) "<enter-command> set sidebar_visible=no; macro index ~ ,@( 'Toggle sidebar'<Enter>"
- macro index ,@( "<enter-command> set sidebar_visible=yes; macro index ~ ,@) 'Toggle sidebar'<Enter>"
- macro index ~ ,@( 'Toggle sidebar' # toggle the sidebar
+ macro index,pager ,@) "<enter-command> set sidebar_visible=no; macro index,pager [ ,@( 'Toggle sidebar'<Enter>"
+ macro index,pager ,@( "<enter-command> set sidebar_visible=yes; macro index,pager [ ,@) 'Toggle sidebar'<Enter>"
+ macro index,pager [ ,@( 'Toggle sidebar' # toggle the sidebar
'';
mutt = pkgs.symlinkJoin {