From 372aa2eb3db375385cf19dc0a6571f790b858241 Mon Sep 17 00:00:00 2001 From: glepnir Date: Mon, 9 Oct 2023 18:47:10 +0800 Subject: feat(float): add fclose command --- runtime/doc/index.txt | 1 + runtime/doc/news.txt | 2 ++ runtime/doc/windows.txt | 5 +++++ 3 files changed, 8 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index b0ead51d0c..9e34cb5eab 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1288,6 +1288,7 @@ tag command action ~ |:execute| :exe[cute] execute result of expressions |:exit| :exi[t] same as ":xit" |:exusage| :exu[sage] overview of Ex commands +|:fclose| :fc[lose] close floating window |:file| :f[ile] show or set the current file name |:files| :files list all files in the buffer list |:filetype| :filet[ype] switch file type detection on/off diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index b0f3b76587..ceacb2e5da 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -188,6 +188,8 @@ The following new APIs and features were added. • |$NVIM_APPNAME| can be set to a relative path instead of only a name. +• Added |:fclose| command. + ============================================================================== CHANGED FEATURES *news-changed* diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index e0c0772f18..eb3c4df511 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -392,6 +392,11 @@ CTRL-W CTRL-O *CTRL-W_CTRL-O* *:on* *:only* given, then they become hidden. But modified buffers are never abandoned, so changes cannot get lost. + *:fc* *:fclose* +:[count]fc[lose][!] + Close [count]th floating window by zindex order. '!' to close + all floating windows. + ============================================================================== 4. Moving cursor to other windows *window-move-cursor* -- cgit