Comments (3)
For the second issue, I'm not 100% sure yet, but almost. The preview window consists of two subwindows, the first one has this anchor
TRACE [neovide::channel_utils] neovim_handler WindowFloatPosition { grid: 10, anchor: NorthWest, anchor_grid: 1, anchor_row: -1.0, anchor_column: 40.0, focusable: false, sort_order: Some(39) }
While the second one has this:
TRACE [neovide::channel_utils] neovim_handler WindowFloatPosition { grid: 11, anchor: NorthWest, anchor_grid: 10, anchor_row: 1.0, anchor_column: 1.0, focusable: true, sort_order: Some(40) }
So, the second one is attached to the first one, but the first one is actually anchored outside the screen. Neovim does not reposition floats that are outside the grid, so we are forced to do it ourselves:
But I think our code is a bit too naive and only consider each window individually. Therefore, it only re-positions the outer window with the borders, leaving the inner one in place, which means that they start to overlap. I think we just need to consider all the attached floating windows as a whole group and reposition it as a whole.
from neovide.
I'm commenting on the first issue first, and will investigate the second one next.
The windows have z-index 99 and 100 respectively, and with:
- #2467
It treats those as one layer, so they become transparent with respect to each other. This was something I was afraid would happen when I made this comment: - #2442 (comment)
And we had more discussion about it on Discord here https://discordapp.com/channels/896132176091955261/896263985614168125/1225611427495284776
There are basically two options, I think.
- Standardize that consecutive z-indices are special around the whole nvim echo system. The issue can be fixed by using z-index 100 and 102 for example.
- Properly experiment, if we actually need to combine different layers, or if it's enough to use a single layer while still maintaining compatibility with the terminal mode rendering. This probably also requires some adaptation on the plugin side, but if it works, I think it's a much nicer option than number 1.
from neovide.
@fredizzimo after looking at it some more, I think the second issue may be a nui
bug. neo-tree
is requesting a popup with row 0
, and then nui
adjusts it to -1
here:
I'm honestly not sure if this is something neovim should do something about when multigrid is enabled? It does appear to clamp the values in the terminal, so it is technically inconsistent, but I'm not sure if the way neovim/neovide handles it now is really wrong.
from neovide.
Related Issues (20)
- Direct3D rendering for linux HOT 2
- --remote-send for Neovide HOT 2
- when i use copyq select copy item, the neovide cannot paste it in insert mode
- Migrate Windows-API Relevant Dependency from winapi to windows-rs
- Neovide causes a driver crash on integrated intel gpu when rendering with DX11 HOT 8
- Custom rendering for box drawing/decoration characters HOT 2
- meta: why is neovide a text editor and not a terminal emulator? HOT 2
- delete stale branches
- Trouble with background color HOT 1
- Position animation length is undocumented HOT 3
- Cursor is offset from click HOT 1
- no-fork exits with SIGSEGV HOT 1
- Open files in wsl from windows context menu HOT 4
- Neovide Freeze (after focus?) HOT 10
- NeoVide renders the characters "hk" as an accented uppercase A HOT 8
- Cursor weird movement when having 3 split windows HOT 6
- [Bug] `Using the D3D12 SDKLayers dll requires that the latest SDKLayers for Windows 10 is installed` error when starting `neovide` HOT 4
- Neovide becomes unresponsive when there is an error during init.lua HOT 1
- cmdline copy paste suport HOT 1
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 neovide.