christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Feature Request: Focus runner and zoom #54

Open raine opened 9 years ago

raine commented 9 years ago

Would be great there was a command that focused on runner pane and executed resize-pane -Z.

christoomey commented 9 years ago

Hey @raine,

Could use better documentation, but :VtrFocusRunner does exactly this. You can see the docs here: https://github.com/christoomey/vim-tmux-runner/blob/515f7d8730359495c09d1a79949520a7e1f20cab/doc/vim-tmux-runner.txt#L148-L153.

If you're using the builtin mappings then it is mapped to <leader>fr.

I'll keep this open to remind myself to update the docs to clarify the behavior, but I think this should cover your needs.

raine commented 9 years ago

Well, focusing doesn't exactly mean same thing as zooming the pane, but it might be possible to build upon that feature to make a command that zooms as well?

christoomey commented 9 years ago

Sorry, docs are lacking but the functionality is there. VtrFocusRunner does both a focus, and a resize -Z. You can see the implementation here: https://github.com/christoomey/vim-tmux-runner/blob/515f7d8730359495c09d1a79949520a7e1f20cab/plugin/vim-tmux-runner.vim#L148-L152.

I likely should rename to FocusAndZoomRunner and alias / deprecate the old function to better explain the behavior.

raine commented 9 years ago

AH! Really sorry about the confusion, I'll try it out right away! :dizzy_face:

raine commented 9 years ago

I vote for ZoomRunner, focus is implicit.