Code Monkey home page Code Monkey logo

Comments (10)

bruno- avatar bruno- commented on August 20, 2024

Hi, thanks for reporting the issue and writing specific 'how to reproduce' steps.
How big of an issue is this for you? How often do you use zoomed windows?

I did some work on 'zoomed' windows in cedd129, but didn't invest additional effort because I use this feature only occasionally and when I do, it's just for a short period of time.

Also, arguably this is tmux bug because tmux select-layout tmux list-windows does not return good output for zoomed windows.

Edit: it's not select-layout but list-windows command that has an unusual output.

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

It's the only thing that I found in my day to day use so far. And I use zoomed windows quite often to get a better overview on the code that I'm writing. So I just tend to forget sometimes to unzoom because I have several codes open in different tabs. It's not necessary to fix it with high priority but if you have a few spare minutes at some stage it might be nice.
I will log in to #tmux tomorrow on freenode and see if I can get them to fix the bug in tmux select-layout. I'll let you know about the progress.

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

Ups wrong button :)

I suppose the problem is with list-windows. I have filed a ticket on tmux's sourceforge page:
https://sourceforge.net/p/tmux/tickets/159/

from tmux-resurrect.

bruno- avatar bruno- commented on August 20, 2024

Okay great.
Yes, you are right, it's the tmux list-windows command that outputs unusual layout information for maximizes/zoomed windows.

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

Hi bruno. Check the ticket on sourceforge again. Somebody suggested to unzoom before saving and then rezooming afterwards. Might be a fix for now if it is not too difficult to implement. Although I would be of the opinion that this requires a fix upstream.

from tmux-resurrect.

bruno- avatar bruno- commented on August 20, 2024

Hey, yes, that could be a workaround solution.
The implementation wouldn't be trivial but it's definitely doable.
It would be great if someone wants to get their hands dirty on this and open a pull request.

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

Hands are dirty already. Saving and unzooming was pretty easy. I will check the restore in the next days and if it works I will send you a pull request.

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

Okay that was easier than thought. See pull request

from tmux-resurrect.

bruno- avatar bruno- commented on August 20, 2024

Hi, thanks so much, this is great!

I saw the pull request last night, glanced over the code, but I thought to myself "it can't be this simple"..
But it works, with just a few lines of code and it's a really elegant solution!

Btw. I also wanted to update the changelog (I credited you as the feature creator) and the readme so I merged this pull request via the command line.

This pull req made my day!

from tmux-resurrect.

Azrael3000 avatar Azrael3000 commented on August 20, 2024

Thanks for the nice words. Keep up the good work.

from tmux-resurrect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.