From 4ab7019b1c9e2379ad114d40aedd0d1f55477674 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Tue, 28 Mar 2023 23:02:52 +0200 Subject: redo command docu --- doc/vim-ai.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/vim-ai.txt') diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index 24a1ebe..d0519fd 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -54,7 +54,6 @@ https://platform.openai.com/docs/api-reference/completions *:AIChat* - :AIChat continue or start a new conversation. (selection)? :AIChat {instruction}? start a new conversation given the selection, the instruction or both @@ -72,6 +71,11 @@ Options: > Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/chat + *:AIRedo* + +:AIRedo repeat last AI command in order to re-try + or get an alternative completion. + CONFIGURATION *vim-ai-config* To customize the default configuration, initialize the config variable with @@ -100,6 +104,9 @@ Examples how configure key bindins and customize commands: > xnoremap c :AIChat nnoremap c :AIChat + " redo last AI command + nnoremap r :AIRedo + " command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun) command! -range -nargs=? AICode ,call AIRun(, "Programming syntax is " . &filetype . ", " . ) -- cgit v1.2.3 From 923746952c3d4794343f0505f4a6389fb6926bdb Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Sun, 2 Apr 2023 23:41:48 +0200 Subject: open chat command docu --- doc/vim-ai.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/vim-ai.txt') diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index d0519fd..d9c3eeb 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -66,6 +66,9 @@ Options: > \ "temperature": 1, \ "request_timeout": 10, \ }, + \ "ui": { + \ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()", + \ }, \} Check OpenAI docs for more infomration: -- cgit v1.2.3