From d25424bc251a322f44815525ab8e11680671449f Mon Sep 17 00:00:00 2001 From: Tibor Schmidt Date: Sun, 10 Dec 2023 21:47:48 +0100 Subject: [PATCH] Update README.md --- README.md | 56 ++++++++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index d8471c7..433558e 100644 --- a/README.md +++ b/README.md @@ -123,55 +123,39 @@ https://github.com/Robitx/gp.nvim/blob/7d802f54fb503f27fc9722656efddb05a533f4cf/ ## Commands -### Chat +### GpChat #### `:GpChatNew` Open a fresh chat in the current window. It can be either empty or include the visual selection or specified range as context. This command also supports subcommands for layout specification: + - `:GpChatNew vsplit` Open a fresh chat in a vertical split window. - `:GpChatNew split` Open a fresh chat in a horizontal split window. - `:GpChatNew tabnew` Open a fresh chat in a new tab. - `:GpChatNew popup` Open a fresh chat in a popup window. -#### :GpChatPaste - : Paste the selection or specified range into the latest chat, simplifying the addition of code from multiple files into a single chat buffer. This command also supports subcommands for layout specification: - - - `:GpChatPaste vsplit` - : Paste into the latest chat in a vertical split window. - - - `:GpChatPaste split` - : Paste into the latest chat in a horizontal split window. - - - `:GpChatPaste tab` - : Paste into the latest chat in a new tab. - - - `:GpChatPaste popup` - : Paste into the latest chat in a popup window. - -- `:GpChatToggle` - : Open chat in a toggleable popup window, showing the last active chat or a fresh one with selection or a range as a context. This command also supports subcommands for layout specification: - - - `:GpChatToggle vsplit` - : Toggle chat in a vertical split window. - - - `:GpChatToggle split` - : Toggle chat in a horizontal split window. +#### `:GpChatPaste` +Paste the selection or specified range into the latest chat, simplifying the addition of code from multiple files into a single chat buffer. This command also supports subcommands for layout specification: - - `:GpChatToggle tab` - : Toggle chat in a new tab. +- `:GpChatPaste vsplit` Paste into the latest chat in a vertical split window. +- `:GpChatPaste split` Paste into the latest chat in a horizontal split window. +- `:GpChatPaste tab` Paste into the latest chat in a new tab. +- `:GpChatPaste popup` Paste into the latest chat in a popup window. - - `:GpChatToggle popup` - : Toggle chat in a popup window. +#### `:GpChatToggle` +Open chat in a toggleable popup window, showing the last active chat or a fresh one with selection or a range as a context. This command also supports subcommands for layout specification: -- `:GpChatFinder` - : Open a dialog to search through chats. +- `:GpChatToggle vsplit` Toggle chat in a vertical split window. +- `:GpChatToggle split` Toggle chat in a horizontal split window. +- `:GpChatToggle tab` Toggle chat in a new tab. +- `:GpChatToggle popup` Toggle chat in a popup window. -- `:GpChatRespond` - : Request a new GPT response for the current chat. +#### `:GpChatFinder` +Open a dialog to search through chats. -- `:GpChatRespond N` - : Request a new GPT response with only the last N messages as context, using everything from the end up to the Nth instance of `🗨:..` (N=1 is like asking a question in a new chat). +#### `:GpChatRespond` +Request a new GPT response for the current chat. Usin`:GpChatRespond N` request a new GPT response with only the last N messages as context, using everything from the end up to the Nth instance of `🗨:..` (N=1 is like asking a question in a new chat). -- `:GpChatDelete` - : Delete the current chat. +#### `:GpChatDelete` +Delete the current chat. By default requires confirmation before delete, which can be disabled in config using `chat_confirm_delete = false,`. ### Text/Code operations - `:GpRewrite`