From 4b0e2605eaf90268195029a29f10903dc82729e7 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 9 Feb 2025 22:04:33 +0100 Subject: feat(ui): UI :detach command Problem: Cannot detach the current UI. Solution: - Introduce `:detach`. - Introduce `Channel.detach`. Co-authored-by: bfredl --- src/nvim/ex_cmds.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/ex_cmds.lua') diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 0cdc397e9c..d118c808d3 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -732,6 +732,12 @@ M.cmds = { addr_type = 'ADDR_NONE', func = 'ex_delfunction', }, + { + command = 'detach', + flags = bit.bor(BANG, FILES, CMDARG, ARGOPT, TRLBAR, CMDWIN, LOCK_OK), + addr_type = 'ADDR_NONE', + func = 'ex_detach', + }, { command = 'display', flags = bit.bor(EXTRA, NOTRLCOM, TRLBAR, SBOXOK, CMDWIN, LOCK_OK), -- cgit