From cffdf102d4f01fe5675c389eb80bf55daa62697a Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Mon, 28 Aug 2023 07:22:19 -0500 Subject: feat(terminal): allow :terminal to take modifiers (#15427) The following modifiers are all now supported: :tab term :vertical term :horizontal term :botright term :topleft term Fixes: https://github.com/neovim/neovim/issues/11385 --- runtime/doc/news.txt | 3 +++ runtime/doc/windows.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 4f9f362b1e..a233b66d1f 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -158,6 +158,9 @@ The following new APIs and features were added. • Floating windows can now show footer with new `footer` and `footer_pos` config fields. Uses |hl-FloatFooter| by default. +• The |:terminal| command now accepts some |:command-modifiers| (specifically + |:horizontal| and those that affect splitting a window). + ============================================================================== CHANGED FEATURES *news-changed* diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index b78c1eeae5..842542bdc3 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -243,7 +243,8 @@ and 'winminwidth' are relevant. :hor[izontal] {cmd} Execute {cmd}. Currently only makes a difference for `horizontal wincmd =`, which will equalize windows only - horizontally. + horizontally, and |:terminal|, which will open a |terminal| + buffer in a split window. :lefta[bove] {cmd} *:lefta* *:leftabove* :abo[veleft] {cmd} *:abo* *:aboveleft* -- cgit