-
Notifications
You must be signed in to change notification settings - Fork 16
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
suggestion: zoom status #4
Comments
There's a tab local variable EDIT: Ideally you can show this in the status line, what would you expect such an API to do ? |
Yes display it in the statusline. |
No different from tmux pane zoom and the tmux's zoom status flag. Thanks. |
Thanks. |
I have added a new API
It spits out the string 'zoomed' if we're zoomed currently and blank if not. |
Yes, I pulled this in immediately - thanks again. BTW, probably an edge case. |
That would be a question for vim-zoom, whether we should invoke zoom or skip it in case there is just 1 window / split. The statusline is only displaying the zoom status so that's doing it's job correctly. |
Indeed - question for vim-zoom. |
I think it's a fair point that we should just not do anything in case we're already the only split in the current tab and vim-zoom is invoked, i'll make the changes appropriately. |
Thank you. |
Great plugin 👍 When I add this to my .vimrc: I get a statusline that literally says "${zoom#statusline()}". I know this is an issue on my side but I'm wondering if anyone here might point me in the right direction. |
@NeilsC sry there's a typo in the README, i'll fix it, it should be : |
@dhruvasagar That did the trick, thanks! |
Hi, is there a way to add it to vim-airline ? |
@ovidius72 You'll need to refer to vim-airline help for that, |
|
Is there a way to know whether one is currently zoomed in or not.
If not it would be nice to add a flag or an API that could be queried to see the status.
Often it's not unreasonable to zoom in on a window, switch out to some other task and then come back to vim a while later, and in such cases would be nice to remind/indicate the current zoom status.
Would just need to expose the t:zoomed through an API.
Thanks.
The text was updated successfully, but these errors were encountered: