Comments (3)
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.
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.
I'll try and figure out a fix for this!
from maximize.nvim.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maximize.nvim.