Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect & zoom in one shot #151

Open
mavam opened this issue Jun 15, 2017 · 3 comments
Open

inspect & zoom in one shot #151

mavam opened this issue Jun 15, 2017 · 3 comments

Comments

@mavam
Copy link

mavam commented Jun 15, 2017

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?

@stellarhoof
Copy link

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

@mavam
Copy link
Author

mavam commented Jun 17, 2017

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.)

@alerque
Copy link
Member

alerque commented Feb 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants