mattr- / slate

A window management application (replacement for Divvy/SizeUp/ShiftIt)
GNU General Public License v3.0
614 stars 39 forks source link

modals and motions #40

Closed kwstannard closed 7 years ago

kwstannard commented 9 years ago

I agree with @nudefireninja on this: https://github.com/jigish/slate/issues/382, but with an added caveat. I want this to be able to act like a VIM modal where there is a single modal and then I can use motions to do anything I from there. I want to be able to do something like this:

bind ${modal-key-combo}:<C-w>L corner top-right resize:screenSizeX/2;screenSizeY
bind ${modal-key-combo}:<C-w>H corner top-left resize:screenSizeX/2;screenSizeY

bind ${modal-key-combo}:<C-w>l focus right
bind ${modal-key-combo}:<C-w>h focus left

This could probably be done with modals within modals. The modal-key-combo would be a toggle modal, while every key combo until the last brings up a non-toggle modal. The final key stroke would then collapse the prior modals back to the original toggle modal.