diff --git a/doc/gp.nvim.txt b/doc/gp.nvim.txt index 0cad12c..22c66f0 100644 --- a/doc/gp.nvim.txt +++ b/doc/gp.nvim.txt @@ -8,7 +8,7 @@ Table of Contents *gp.nvim-table-of-contents* - Commands |gp.nvim-commands| - Extend functionality |gp.nvim-extend-functionality| -ChatGPT like sessions, Instructable text/code operations, Speech to text and Image generation in your favorite editor.*gp.nvim-ChatGPT-like-sessions,-Instructable-text/code-operations,-Speech-to-text-and-Image-generation-in-your-favorite-editor.* +ChatGPT like sessions, Instructable text/code operations, Speech to text and Image generation in your favorite editor.*ChatGPT-like-sessions,-Instructable-text/code-operations,-Speech-to-text-and-Image-generation-in-your-favorite-editor.* @@ -146,7 +146,7 @@ COMMANDS *gp.nvim-commands* CHAT ~ -:GpChatNew *gp.nvim-:GpChatNew* +:GpChatNew *: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 @@ -156,7 +156,7 @@ horizontal split window. - `:GpChatNew tabnew` Open a fresh chat in a new tab. - `:GpChatNew popup` Open a fresh chat in a popup window. -:GpChatPaste *gp.nvim-:GpChatPaste* +:GpChatPaste *: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: @@ -174,61 +174,61 @@ horizontal split window. - `:GpChatNew tabnew` Open a fresh chat in a new tab. : Paste into the latest chat in a popup window. < -- *gp.nvim-`:GpChatToggle`* +- *`:GpChatToggle`* `: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: - - *gp.nvim-`:GpChatToggle-vsplit`* + - *`:GpChatToggle-vsplit`* `:GpChatToggle vsplit` Toggle chat in a vertical split window. - - *gp.nvim-`:GpChatToggle-split`* + - *`:GpChatToggle-split`* `:GpChatToggle split` Toggle chat in a horizontal split window. - - *gp.nvim-`:GpChatToggle-tab`* + - *`:GpChatToggle-tab`* `:GpChatToggle tab` Toggle chat in a new tab. - - *gp.nvim-`:GpChatToggle-popup`* + - *`:GpChatToggle-popup`* `:GpChatToggle popup` Toggle chat in a popup window. -- *gp.nvim-`:GpChatFinder`* +- *`:GpChatFinder`* `:GpChatFinder` Open a dialog to search through chats. -- *gp.nvim-`:GpChatRespond`* +- *`:GpChatRespond`* `:GpChatRespond` Request a new GPT response for the current chat. -- *gp.nvim-`:GpChatRespond-N`* +- *`:GpChatRespond-N`* `: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). -- *gp.nvim-`:GpChatDelete`* +- *`:GpChatDelete`* `:GpChatDelete` Delete the current chat. TEXT/CODE OPERATIONS ~ -- *gp.nvim-`:GpRewrite`* +- *`:GpRewrite`* `:GpRewrite` Opens a dialog for entering a prompt. After providing prompt instructions into the dialog, the generated response replaces the current line in the normal/insert mode, selected lines in visual mode, or the specified range (for example `:%GpRewrite` would apply the rewrite to the entire buffer). - - *gp.nvim-`:GpRewrite-`* + - *`:GpRewrite-`* `:GpRewrite {prompt}` Executes directly with specified `{prompt}` instructions, bypassing the dialog. Suitable mapping repetitive tasks to keyboard shortcuts or for automation using headless Neovim via terminal or shell scripts. -- *gp.nvim-`:GpAppend`* +- *`:GpAppend`* `:GpAppend` Behaves like |gp.nvim-gprewrite|, but the answer is added after the current line, visual selection, or range. -- *gp.nvim-`:GpPrepend`* +- *`:GpPrepend`* `:GpPrepend` Behaves like |gp.nvim-gprewrite|, but the answer is added before the current line, visual selection, or range. -- *gp.nvim-`:GpEnew`* +- *`:GpEnew`* `:GpEnew` Behaves like |gp.nvim-gprewrite|, but the answer is added into a new buffer in the current window. -- *gp.nvim-`:GpNew`* +- *`:GpNew`* `:GpNew` Behaves like |gp.nvim-gprewrite|, but the answer is added into a new horizontal split window. -- *gp.nvim-`:GpVnew`* +- *`:GpVnew`* `:GpVnew` Behaves like |gp.nvim-gprewrite|, but the answer is added into a new vertical split window. -- *gp.nvim-`:GpTabnew`* +- *`:GpTabnew`* `:GpTabnew` Behaves like |gp.nvim-gprewrite|, but the answer is added into a new tab. -- *gp.nvim-`:GpPopup`* +- *`:GpPopup`* `:GpPopup` Behaves like |gp.nvim-gprewrite|, but the answer is added into a pop-up window. -- *gp.nvim-`:GpImplement`* +- *`:GpImplement`* `:GpImplement` Example hook command for finishing the code based on comments provided in the visual selection or specified range. OTHER ~ -- *gp.nvim-`:GpContext`* +- *`:GpContext`* `:GpContext` Provides custom context per repository by opening `.gp.md` file for a given repository in a toggleable window. If used with selection/range, it appends it to the context file. Supports display targeting subcommands just like `GpChatNew`. -- *gp.nvim-Agent-Switching-Commands* +- *Agent-Switching-Commands* Agent Switching Commands Commands to switch between configured agents (model + persona), including `:GpNextAgent` to cycle between available agents, `:GpAgent` to display currently used agents, and `:GpAgent XY` to choose a new agent. -- *gp.nvim-Voice-Commands-Transcribed-by-Whisper-API* +- *Voice-Commands-Transcribed-by-Whisper-API* Voice Commands Transcribed by Whisper APIIncludes `:GpWhisper` for transcriptions, as well as other `GpWhisper` commands that act as editable prompts for their equivalent non-whisper commands (`GpWhisperRewrite`, `GpWhisperAppend`, etc.). -- *gp.nvim-`:GpStop`* +- *`:GpStop`* `:GpStop` To stop the stream of a currently running GPT response. -- *gp.nvim-`:GpInspectPlugin`* +- *`:GpInspectPlugin`* `:GpInspectPlugin` Inspect GPT prompt plugin object. - Provide custom context per repository with`:GpContext` - opens`.gp.md` file for given repository in toggable window @@ -347,7 +347,7 @@ There are no default global shortcuts to mess with your own config. Bellow are examples for you to adjust or just use directly. -Native *gp.nvim-Native* +Native *Native* You can use the good old `vim.keymap.set` and paste the following after `require("gp").setup(conf)` call (or anywhere you keep shortcuts if you want @@ -434,7 +434,7 @@ them at one place). < -Whichkey *gp.nvim-Whichkey* +Whichkey *Whichkey* Or go more fancy by using which-key.nvim plugin: