-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
session detach / reattach, like screen/tmux #5035
Comments
See #2706 (comment) |
A lightweight way to do this at present that's working well for me is to let abduco handle the session management:
|
I'm currently using dtach for this: |
reference for daemonize procedure: |
Are there any plans for this? I use Neovim on Windows, but Windows lacks any terminal multiplexers (tmux works only in Msys2/Cygwin and that too only in mintty terminal). Splits/panes etc. for shells works fine, but Neovim is obviously missing the main tmux feature that is attach/detach. |
@rashil2000 have you tried https://wezfurlong.org/wezterm/multiplexing.html? |
@rashil2000 original Veonim had that feature as well, here is a fork of it https://github.com/smolck/uivonim |
This comment has been minimized.
This comment has been minimized.
@rashil2000 In general, I just suggested searching for a client which implements the management of multiple Neovim instances ... which runs on Windows. A starting point would be the wiki which lists different clients. |
This comment has been minimized.
This comment has been minimized.
Neovide has recently gained support for connecting to a remote Neovim instance over TCP (as detailed in the README). However, I don't think it's in the stable release, so you might have to build from source. |
@Benjamin-Davies Wow, that looks interesting, will try building from source to check it out. |
@rashil2000 there is the pr #8246 but it stalled for a long time now. I think that might be what you want. |
There is actually another one on similar lines #10071, which allows the TUI to connect to a headless nvim server. While not exactly same as attaching/detaching, it will allow us to connect similarly to tmux servers (which can be listed by, for example |
This would be even more useful, if all instances could see the same opened buffers as it is possible with Emacs. This is something I miss from Emacs, as it allowed to use i3wm for managing window layout |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There's also https://github.com/martanne/abduco for just the session management part (which can be combined with nvim for the multiplexing part) |
(which unfortunately doesn't work on Windows) |
With nvim's terminal mode, if it had the ability to detach and reattach, it could serve as a replacement for screen or tmux.
This would require a few additional bits:
:detach
function, to stop running the text UI and daemonize into a --headless instance that will survive the current user session ending.screen -D -R
), and one that attaches without detaching any other attached text UI (likescreen -x
). (That last one is optional, but I'd find it quite useful.)cc @jameysharp
The text was updated successfully, but these errors were encountered: