@@ -85,6 +85,11 @@ let s:default_keycode = {
8585 \ ' flast' : ' 36' ,
8686 \ ' fnext' : ' 119' ,
8787 \ ' fprev' : ' 87' ,
88+ \ ' hfull' : ' 95' ,
89+ \ ' vfull' : ' 124' ,
90+ \ ' sizeeq' : ' 61' ,
91+ \ ' tabl' : ' 74' ,
92+ \ ' tabr' : ' 75' ,
8893 \ ' finish' :' 13' ,
8994 \ ' cancel' :' 113' ,
9095 \ ' enter' :' 13' ,
@@ -113,6 +118,11 @@ let g:winresizer_keycode_escape = get(g:, 'winresizer_keycode_escape', s:default
113118let g: winresizer_keycode_enter = get (g: , ' winresizer_keycode_enter' , s: default_keycode [' enter' ])
114119let g: winresizer_keycode_mode = get (g: , ' winresizer_keycode_mode' , s: default_keycode [' mode' ])
115120let g: winresizer_keycode_close = get (g: , ' winresizer_keycode_close' , 120 )
121+ let g: winresizer_keycode_hfull = get (g: , ' winresizer_keycode_hfull' , 95 )
122+ let g: winresizer_keycode_vfull = get (g: , ' winresizer_keycode_vfull' , 124 )
123+ let g: winresizer_keycode_sizeeq = get (g: , ' winresizer_keycode_sizeeq' , 61 )
124+ let g: winresizer_keycode_tabl = get (g: , ' winresizer_keycode_tabl' , 74 )
125+ let g: winresizer_keycode_tabr = get (g: , ' winresizer_keycode_tabr' , 75 )
116126
117127" if <ESC> key downed, finish resize mode
118128let g: winresizer_finish_with_escape = get (g: , ' winresizer_finish_with_escape' , 1 )
@@ -133,6 +143,11 @@ let s:codeList = {
133143 \ ' enter' : g: winresizer_keycode_enter ,
134144 \ ' mode' : g: winresizer_keycode_mode ,
135145 \ ' close' : g: winresizer_keycode_close ,
146+ \ ' hfull' : g: winresizer_keycode_hfull ,
147+ \ ' vfull' : g: winresizer_keycode_vfull ,
148+ \ ' sizeeq' : g: winresizer_keycode_sizeeq ,
149+ \ ' tabl' : g: winresizer_keycode_tabl ,
150+ \ ' tabr' : g: winresizer_keycode_tabr ,
136151 \ ' num1' : ' 49' ,
137152 \ ' num2' : ' 50' ,
138153 \ ' num3' : ' 51' ,
@@ -168,6 +183,8 @@ fun! s:guiResizeCommands()
168183 \ ' up' : ' let &lines = &lines - ' . g: winresizer_horiz_resize ,
169184 \ ' down' : ' let &lines = &lines + ' . g: winresizer_horiz_resize ,
170185 \ ' cancel' : ' let &columns = ' . &columns . ' |let &lines = ' . &lines . ' |' ,
186+ \ ' tabl' : ' tabprevious' ,
187+ \ ' tabr' : ' tabnext' ,
171188 \}
172189
173190 return commands
@@ -185,6 +202,11 @@ fun! s:tuiResizeCommands()
185202 \ ' up' : ' :resize ' . behavior[' up' ] . g: winresizer_horiz_resize ,
186203 \ ' down' : ' :resize ' . behavior[' down' ] . g: winresizer_horiz_resize ,
187204 \ ' cancel' : winrestcmd (),
205+ \ ' hfull' : ' wincmd _' ,
206+ \ ' vfull' : ' wincmd |' ,
207+ \ ' sizeeq' : ' wincmd =' ,
208+ \ ' tabl' : ' tabprevious' ,
209+ \ ' tabr' : ' tabnext' ,
188210 \}
189211
190212 return commands
@@ -200,6 +222,8 @@ fun! s:moveCommands()
200222 \ ' up' : " :call winresizer#swapTo('up')" ,
201223 \ ' down' : " :call winresizer#swapTo('down')" ,
202224 \ ' cancel' : winrestcmd (),
225+ \ ' tabl' : ' tabprevious' ,
226+ \ ' tabr' : ' tabnext' ,
203227 \}
204228
205229 return commands
@@ -229,6 +253,8 @@ fun! s:focusCommands()
229253 \ ' flast' : ' $ wincmd w' ,
230254 \ ' fnext' : ' wincmd w' ,
231255 \ ' fprev' : ' wincmd W' ,
256+ \ ' tabl' : ' tabprevious' ,
257+ \ ' tabr' : ' tabnext' ,
232258 \}
233259
234260 return commands
@@ -308,6 +334,16 @@ fun! s:startResize(commands)
308334 echohl WarningMsg | echo ' winresizer: ' . v: exception | echohl None
309335 endtry
310336 endif
337+ elseif c == s: codeList [' hfull' ] && has_key (l: commands , ' hfull' ) " _
338+ exe l: commands [' hfull' ]
339+ elseif c == s: codeList [' vfull' ] && has_key (l: commands , ' vfull' ) " |
340+ exe l: commands [' vfull' ]
341+ elseif c == s: codeList [' sizeeq' ] && has_key (l: commands , ' sizeeq' ) " =
342+ exe l: commands [' sizeeq' ]
343+ elseif c == s: codeList [' tabl' ] && has_key (l: commands , ' tabl' ) " J
344+ exe l: commands [' tabl' ]
345+ elseif c == s: codeList [' tabr' ] && has_key (l: commands , ' tabr' ) " K
346+ exe l: commands [' tabr' ]
311347 elseif c == g: winresizer_keycode_cancel " q
312348 exe l: commands [' cancel' ]
313349 redraw
0 commit comments