vimux icon indicating copy to clipboard operation
vimux copied to clipboard

inspect & zoom in one shot

Open mavam opened this issue 8 years ago • 3 comments

I frequently find myself navigating through lengthy compiler output where I first zoom and then have to scroll through error messages. For this task, a combination of VimuxInspectRunner and VimuxZoomRunner would be handy (e.g., VimuxZoomInspectRunner).

Would you consider such a feature for a future release?

mavam avatar Jun 15 '17 14:06 mavam

The author hasn't had any activity in the last year

stellarhoof avatar Jun 16 '17 20:06 stellarhoof

Thanks for the heads up. I hacked up my own version for now:

" Combine VimuxZoomRunner and VimuxInspectRunner in one function.
function! VimuxZoomInspectRunner()
  if exists("g:VimuxRunnerIndex")
    call _VimuxTmux("select-"._VimuxRunnerType()." -t ".g:VimuxRunnerIndex)
    call _VimuxTmux("resize-pane -Z -t ".g:VimuxRunnerIndex)
    call _VimuxTmux("copy-mode")
  endif
endfunction

(@benmills: Let me know if you want a PR when you're back.)

mavam avatar Jun 17 '17 09:06 mavam

I'd be willing to consider this as a PR if it was also documented. I don't want to make the array of commands provided but this seems like a reasonable complement to the existing set. It might be worth considering whether either the zoom or inspect functions would be better refactored as optional arguments for other functions rather than having one for each plus combos.

alerque avatar Feb 14 '21 09:02 alerque