feat(ui): UI :detach command

Problem:
Cannot detach the current UI.

Solution:
- Introduce `:detach`.
- Introduce `Channel.detach`.

Co-authored-by: bfredl <bjorn.linse@gmail.com>
This commit is contained in:
Justin M. Keyes
2025-02-09 22:04:33 +01:00
parent ad60b3fb48
commit 4b0e2605ea
20 changed files with 244 additions and 63 deletions

View File

@@ -31,6 +31,9 @@ struct Channel {
} stream;
bool is_rpc;
bool detach; ///< Prevents self-exit on channel-close. Normally, Nvim self-exits if its primary
///< RPC channel is closed, unless detach=true. Note: currently, detach=false does
///< not FORCE self-exit.
RpcState rpc;
Terminal *term;