Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open a nui layout in a new tab #328

Open
patata3000 opened this issue Feb 1, 2024 · 4 comments
Open

Open a nui layout in a new tab #328

patata3000 opened this issue Feb 1, 2024 · 4 comments

Comments

@patata3000
Copy link

Hello, I try to create a layout with splits replacing the current buffer. I'm not sure how to do this properly. I can create a split layout and then delete the window that is still open but I feel that it's a bit clunky.

Does anyone have a way of doing this?

@youguanxinqing
Copy link

youguanxinqing commented Apr 22, 2024

I also have the same problem. When I show a Menu and then toggle folder tree, I will lose the control of the Menu. It is always there no matter what I do.

@MunifTanjim
Copy link
Owner

Hello, I try to create a layout with splits replacing the current buffer. I'm not sure how to do this properly. I can create a split layout and then delete the window that is still open but I feel that it's a bit clunky.

Currently that's the only way of doing it.

If this gets merged #185, you'll have an easier way of doing it.

@MunifTanjim
Copy link
Owner

I also have the sample problem. When I show a Menu and then toggle folder tree, I will lose the control of the Menu. It is always there no matter what I do.

That sounds like a different problem.

You can use BufLeave autocmd to close the menu. Or do it manually using :unmount method.

Or if the menu is focusable, you can use <C-W> w for switching to it.

@youguanxinqing
Copy link

youguanxinqing commented Apr 22, 2024

That sounds like a different problem.

You can use BufLeave autocmd to close the menu. Or do it manually using :unmount method.

Or if the menu is focusable, you can use <C-W> w for switching to it.

Thanks, <C-W> w works for me. I tried to use <c-w> h/j/k/l, but does not reach the Menu. Honestly, I have learned that <C-W> w can switch windows from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants