-
-
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
detach the current TUI (nvim continues headlessly) #23093
Comments
I don't think this should be changed. |
I don't think we should try to detach the Even now, it is possible to terminate only To begin with, #18375 has the following disadvantages,
so it is unlikely to be beneficial to users unless it is used as follows
In that case, we would love to have this feature. |
Thanks for the info. I came up with a function to disconnect all remote-ui sessions: vim.keymap.set('n', '<leader>q', function()
for _, ui in pairs(vim.api.nvim_list_uis()) do
if ui.chan and not ui.stdout_tty then
vim.fn.chanclose(ui.chan)
end
end
end, { noremap = true }) This is working for my use case, but I am not 100% sure that ui.stdout_tty is the correct condition to check. But, if I use your nohup commands in combination with this I can have a long living neovim session. Hopefully this helps someone 🙂 |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Problem
When connected to a remote ui executing
:q
will close the remote server, I guess this makes sense in the way that the command is being run by the backend and not the UI, but it's not intuitive or desired, I wish to quit without killing the backendSteps to reproduce
nvim --listen 127.0.0.1:8888 --headless
nvim --server 127.0.0.1:8888 --remote-ui
:q
Expected behavior
The UI should disconnect from the server but not to kill it
Neovim version (nvim -v)
0.10.x
Vim (not Nvim) behaves the same?
no
Operating system/version
macOS 13.2.1
Terminal name/version
iTerm
$TERM environment variable
xterm-256color
Installation
homebrew
The text was updated successfully, but these errors were encountered: