diff --git a/docs/terminal.md b/docs/terminal.md index e1f87a1c..f9cab559 100644 --- a/docs/terminal.md +++ b/docs/terminal.md @@ -189,6 +189,16 @@ Open a new terminal window. Snacks.terminal.open(cmd, opts) ``` +### `Snacks.terminal.tid()` + +Get a terminal id based on the `cmd`, `cwd`, `env` and `vim.v.count1` options. + +```lua +---@param cmd? string | string[] +---@param opts? snacks.terminal.Opts +Snacks.terminal.tid(cmd, opts) +``` + ### `Snacks.terminal.toggle()` Toggle a terminal window.