From 3911888e7c4b979eaf2ce7a360dd935b9e2ad38d Mon Sep 17 00:00:00 2001 From: Practicalli Engineering Date: Sun, 16 Jun 2024 01:12:07 +0100 Subject: [PATCH] basics: Toggleterm uses direction=tab to open in tab page AstroNvim key binding to open Toggleterm in a tab page no longer exists (or has been overridden by Toggleterm btm) Add how to open Toggleterm in a new tab page Resolve #3 --- docs/neovim-basics/terminal.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/neovim-basics/terminal.md b/docs/neovim-basics/terminal.md index eb96c5ca..c86e2cf2 100644 --- a/docs/neovim-basics/terminal.md +++ b/docs/neovim-basics/terminal.md @@ -2,15 +2,16 @@ [akinsho/toggleterm.nvim](https://github.com/akinsho/toggleterm.nvim) plugin provides a terminal session within Neovim, using a float, split or tab. -=== "AstroNvim" - `SPC t` for the Terminal sub-menu +++spc++ ++"t"++ for the Terminal sub-menu - `SPC t f` opens a terminal in a floating window, useful for one-off commands +++spc++ ++"t"++ ++"f"++ opens a terminal in a floating window, useful for one-off commands or short sessions - `SPC t h` opens a terminal in a horizontal split, useful for a process that prints valuable feedback, e.g. a test runner in watch mode +++spc++ ++"t"++ ++"f"++ opens a terminal in a horizontal split, useful for a process that prints valuable feedback, e.g. a test runner in watch mode - `SPC t t` opens a terminal in a tab, useful for background processes that do not need attendtion - - ![Toggleterm.nvim float](https://github.com/practicalli/graphic-design/blob/live/editors/neovim/screenshots/neovim-terminal-float-directory-listing-light.png?raw=true#only-light){loading=lazy} - ![Toggleterm.nvim float](https://github.com/practicalli/graphic-design/blob/live/editors/neovim/screenshots/neovim-terminal-float-directory-listing-dark.png?raw=true#only-dark){loading=lazy} +`:Toggleterm direction=tab` opens a terminal in a tab page, useful for long running processes + + + +![Toggleterm.nvim float](https://github.com/practicalli/graphic-design/blob/live/editors/neovim/screenshots/neovim-terminal-float-directory-listing-light.png?raw=true#only-light){loading=lazy} +![Toggleterm.nvim float](https://github.com/practicalli/graphic-design/blob/live/editors/neovim/screenshots/neovim-terminal-float-directory-listing-dark.png?raw=true#only-dark){loading=lazy}