Giter VIP home page Giter VIP logo

Comments (3)

yogan avatar yogan commented on June 29, 2024 2

There seems to be a general issue with "special windows": nvim-tree, quickfix/location list, help, etc. When you try to maximize those, they disappear and the last "real" (file/buffer) window gets maximized.

I can live without maximizing those special windows, every now and then I forget, and they I lose those windows. So it would be nice to detect them and just do nothing.

from maximize.nvim.

yogan avatar yogan commented on June 29, 2024 1

I tried to investigate a bit, but I didn't come that far (I basically have zero experience with nvim plugin development).

Still, what I found out:

  • closing of non-file buffers happens here: https://github.com/Shatur/neovim-session-manager/blob/9652b392805dfd497877342e54c5a71be7907daf/lua/session_manager/utils.lua#L74-L79
  • just commenting the loop out does indeed lead to weird behavior:
    • you can maximize utility windows then, but:
    • on restore they are just empty (I tested with nvim-tree)
  • curiously the the comment above the loop mentions a session manager, so I tested with the session manager that I use (possession.nvim)
  • possession.nvim kind of can restore sessions with utility windows:
    • nvim-tree works just fine, it gets its correct position and contents
    • quickfix list, or LSP diagnostics with e.g. Trouble get restored, but get a default window size, and have not content (no content makes a lot of sense, as those would need to be re-evaluated)

So maybe we can find out what possession is doing and try to use that, as both plugins are based on :mksession

from maximize.nvim.

declancm avatar declancm commented on June 29, 2024

I'll try and figure out a fix for this!

from maximize.nvim.

Related Issues (6)

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.