You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "focusable" attribute is explicitly ignored for non-floating windows. For example, here is the code for going to the next/previous window, which ignores focusable==false unless the window is also floating:
I'm working on an addon that adds "companion windows" for certain functionality where non-focusable, non-floating windows would be really useful. I note that it's possible to set the focusable flag on non-floating windows without error, and the fact that focusable only applies to floating windows is not mentioned in the docs.
I'd be happy create a PR to change window navigation to respect the focusable flag unambiguously. Can anyone who knows the project well think of a reason why this shouldn't be done?
If we can't fix the behaviour, I think we should at least fix the docs to be explicit about this. We should also consider returning an error when the focusable flag is set on a non-floating window, as we currently do for other attributes that are floating-only (borders for example). I'd be happy to create a PR for this too.
Expected behavior
When the focusable flag is false for a non-floating window, I expect window navigation commands to skip the window.
The text was updated successfully, but these errors were encountered:
Problem
The "focusable" attribute is explicitly ignored for non-floating windows. For example, here is the code for going to the next/previous window, which ignores focusable==false unless the window is also floating:
neovim/src/nvim/window.c
Lines 355 to 374 in 7e65f37
I'm working on an addon that adds "companion windows" for certain functionality where non-focusable, non-floating windows would be really useful. I note that it's possible to set the focusable flag on non-floating windows without error, and the fact that focusable only applies to floating windows is not mentioned in the docs.
Expected behavior
When the focusable flag is false for a non-floating window, I expect window navigation commands to skip the window.
The text was updated successfully, but these errors were encountered: