File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ const StatusLine = Module("statusline", {
131131 this . setVisibility . UPDATE = 0 ; // Apply current configuration
132132 this . setVisibility . SHOW = 1 ; // Temporarily show statusline
133133 this . setVisibility . HIDE = 2 ; // Temporarily hide statusline
134+ this . setVisibility . TOGGLE = 3 ; // Cycle through all three modes (auto, visible, hidden)
134135
135136 this . setVisibility . contentSeparator = highlight . get ( 'ContentSeparator' ) . value ;
136137 this . setVisibility . isVisible = true ;
@@ -197,6 +198,14 @@ const StatusLine = Module("statusline", {
197198 hideStatusline ( ) ;
198199 }
199200 break ;
201+
202+ case sv . TOGGLE :
203+ switch ( mode ) {
204+ case "auto" : options [ "statuslinevisibility" ] = "visible" ; break ;
205+ case "visible" : options [ "statuslinevisibility" ] = "hidden" ; break ;
206+ case "hidden" : options [ "statuslinevisibility" ] = "auto" ; break ;
207+ }
208+ break ;
200209 }
201210 } ,
202211
You can’t perform that action at this time.
0 commit comments