From 4cdbb9989cc3283cc6f76f51f81a42b4fc0d9f00 Mon Sep 17 00:00:00 2001 From: Han Pham <36429830+hanpham32@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:04:19 -0800 Subject: [PATCH] doc: add missing descriptions for user commands (#938) Usage for user commands, such as `:AvanteAsk`, are not detailed in the documentation. I find this piece of information to be useful as reference for the users. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index dbc1e4a..36b61b0 100644 --- a/README.md +++ b/README.md @@ -392,6 +392,20 @@ The following key bindings are available for use with `avante.nvim`: > If you are using `lazy.nvim`, then all keymap here will be safely set, meaning if `aa` is already binded, then avante.nvim won't bind this mapping. > In this case, user will be responsible for setting up their own. See [notes on keymaps](https://github.com/yetone/avante.nvim/wiki#keymaps-and-api-i-guess) for more details. +## Commands + +| Command | Description | Examples +|---------|-------------| ------------------ +| `:AvanteAsk [question] [position]` | Ask AI about your code. Optional `position` set window position and `ask` enable/disable direct asking mode | `:AvanteAsk position=right Refactor this code here` +| `:AvanteBuild` | Build dependencies for the project | +| `:AvanteChat` | Start a chat session with AI about your codebase. Default is `ask`=false | +| `:AvanteEdit` | Edit the selected code blocks | +| `:AvanteFocus` | Switch focus to/from the sidebar | +| `:AvanteRefresh` | Refresh all Avante windows | +| `:AvanteSwitchProvider` | Switch AI provider (e.g. openai) | +| `:AvanteShowRepoMap` | Show repo map for project's structure | +| `:AvanteToggle` | Toggle the Avante sidebar | + ## Highlight Groups | Highlight Group | Description | Notes |