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", {
131
131
this . setVisibility . UPDATE = 0 ; // Apply current configuration
132
132
this . setVisibility . SHOW = 1 ; // Temporarily show statusline
133
133
this . setVisibility . HIDE = 2 ; // Temporarily hide statusline
134
+ this . setVisibility . TOGGLE = 3 ; // Cycle through all three modes (auto, visible, hidden)
134
135
135
136
this . setVisibility . contentSeparator = highlight . get ( 'ContentSeparator' ) . value ;
136
137
this . setVisibility . isVisible = true ;
@@ -197,6 +198,14 @@ const StatusLine = Module("statusline", {
197
198
hideStatusline ( ) ;
198
199
}
199
200
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 ;
200
209
}
201
210
} ,
202
211
You can’t perform that action at this time.
0 commit comments