News for hackers. Stuff that matters.
Re:Nvui: A NeoVim GUI written in C++ and Qt by Lio on Monday August 30, 2021 @03:32AM (#28353475)
> In ideal world: reordering, tearing off and merging.

That's an interesting idea. It sounds like it should be technically possible in the terminal too.

Same would go with drag copying text.

Re:Nvui: A NeoVim GUI written in C++ and Qt by CJefferson on Monday August 30, 2021 @04:27AM (#28353702)
"tearing off" to me means creating a new window -- I don't know any terminal which lets you down a new window (although terminal lovers wouldn't want that I imagine).
Re:Nvui: A NeoVim GUI written in C++ and Qt by Lio on Monday August 30, 2021 @04:50AM (#28353823)
It's not something I'd want personally but I don't see why it wouldn't be possible for those that do.

The iTerm2/tmux integration show that's you can map TUI windows on to GUI windows including splits into new GUI windows.

It's actually possible to have both the TUI representation and GUI representation connected to the same remote tmux session.

https://iterm2.com/documentation-tmux-integration.html

Re:Nvui: A NeoVim GUI written in C++ and Qt by kchr on Monday August 30, 2021 @04:47AM (#28353808)
You can have tabs in vim instead of the terminal. Check :tabedit for example.
Re:Nvui: A NeoVim GUI written in C++ and Qt by yoz-y on Monday August 30, 2021 @05:03AM (#28353886)
Yes that's the idea. Tearing off a tab in vim and creating a new terminal window with an instance of vim having contents of that tab. This is possible in vim guis but afaik not in any terminal version.
Re:Nvui: A NeoVim GUI written in C++ and Qt by dkersten on Monday August 30, 2021 @08:48AM (#28355089)
When I'm using an IDE (vim-based or otherwise), I tend to have other things integrated into the editor session, for example I'm connected to a REPL or other external thing. If I pop a tab out into a new window, I don't want it to be an entirely separate editor session: I want it to keep all these extra integrated things as the parent. I still want to be able to evaluate code in the same REPL session as the parent without having to create a new session or connection.

I'm not sure how to handle something like this in a terminal editor, unless the vim plugins are aware of it (but they're not, since they weren't written for it). In a non-terminal editor like nvui, the new window could be just a view into a buffer, but still running inside the one instance of vim, allowing these plugins to keep working transparently, even though now there are multiple windows.

I don't think this is something that's easily possible with terminals without rewriting all the plugins that might need to be aware of it.