Commit Graph

727 Commits

Author SHA1 Message Date
Omar Crespo
2991ca69a0 fix: include cursor-planning in the whitelist for dualboost (#1312) 2025-02-20 12:02:34 +08:00
yetone
82bf18147e docs: update cursor planning mode (#1310) 2025-02-20 00:54:30 +08:00
yetone
4fd2cf0e40 docs: for cursor planning mode (#1309) 2025-02-20 00:09:18 +08:00
Lucas Pereira
36f8db9629 feat: allow disabling tools for claude & copilot (#1300) 2025-02-20 00:00:10 +08:00
yetone
3476eabc4c fix: selected code container height (#1308) 2025-02-19 19:39:01 +08:00
yetone
09403a26df fix: ignore special buffers (#1307) 2025-02-19 19:25:59 +08:00
Nick Dichev
c1df9970bc feat(file_selector): add @buffers mention to add open buffers to chat context (#1303) 2025-02-19 18:22:07 +08:00
yetone
04eaa32384 fix(docs): max tokens (#1306) 2025-02-19 18:08:41 +08:00
Hanchin Hsieh
97b938b47b feat(sidebar): add "commit" command (#1304)
- Extend AvanteSlashCommandType to include "commit"
- Add new command entry for "commit" with description "Commit the changes"
- Implement callback function for "commit" command
- Update input container logic to handle "commit" command
- Set request to "Please commit the changes" when "commit" command is used

Hanchin Hsieh <me@yuchanns.xyz>
2025-02-19 13:50:24 +08:00
Michael Gendy
9a191abce5 feat(model): add model selection (#961)
* feat(model): add model selection with keybinding

* lint

* rename model_select to model_selector
2025-02-19 02:01:21 +08:00
yetone
85370a5a1b fix: do not have bg (#1299) 2025-02-19 01:48:14 +08:00
zerogog
a17d4b00e2 fix: #1176 Gemini model in OpenRouter not finish their response (#1292) 2025-02-18 22:59:16 +08:00
guanghechen
63194b5208 feat(file_selector): support customized filepaths resolver (#1294) 2025-02-18 22:57:59 +08:00
Qingzhou Yue
b09de37b7f doc: add blink-cmp-avante in README.md (#1293) 2025-02-18 22:57:20 +08:00
Hanchin Hsieh
c1f1a89d74 feat(llm_tools): add git diff and commit functions (#1295)
Added two new functions to support git operations:

- git_diff: Get git diff for generating commit message (both staged and unstaged changes)

- git_commit: Commit changes with commit message and optional signing

These functions also support:

- GPG signing if available and configured

- Automatic staging of files if scope is provided

- User confirmation before committing

- Signed-off-by line with git user info

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-02-18 22:56:50 +08:00
yetone
18f3c50ea0 docs: recommended groq as cursor applying provider (#1298) 2025-02-18 22:54:02 +08:00
yetone
603bd7f8ec optimize: live diff performance (#1297) 2025-02-18 22:41:58 +08:00
yetone
7f74d9f105 fix: simplifies highlights complex code (#1291) 2025-02-18 10:25:38 +08:00
yetone
b20b2caf22 fix: cursor planning mode bad cases (#1290) 2025-02-17 22:27:43 +08:00
yetone
b21d2632d3 feat: cursor planning mode (#1289) 2025-02-17 18:49:29 +08:00
phyer
b6ae4dfe7f fix: use absolute paths to handle gitignore
Co-authored-by: zhangkun9038@dingtalk.com <zhangkun9038@dingtalk.com>
2025-02-17 12:56:09 +08:00
8uff3r
f70eb1040c fix(providers/openai): check for vim.NIl on tool_calls (#1283) 2025-02-17 12:54:58 +08:00
kyrisu
6fd82f24dd fix: correct typo in answer field name in tavily format_response_body function (#1287) 2025-02-17 12:53:15 +08:00
Enes Kutay SEZEN
0a146dc63a docs: add reasoning_effort docs (#1286) 2025-02-17 12:52:22 +08:00
yetone
7fa7b0fa3b feat: support searchapi (#1284) 2025-02-17 00:36:00 +08:00
yetone
c60dc6c316 fix: case insensitive (#1275) 2025-02-14 12:28:39 +08:00
Hanchin Hsieh
1a4f2575d6 fix(utils): get non-nil filetype 2025-02-13 16:58:35 +08:00
Hanchin Hsieh
16bcbc0229 Revert "Fix Makefile shell usage"
This reverts commit 8f32512949.
2025-02-13 15:31:02 +08:00
Alexandre Balon-Perin
8f32512949 Fix Makefile shell usage 2025-02-13 15:19:22 +08:00
yetone
25111c6df3 fix: incorrect minimize snippets (#1265) 2025-02-13 13:39:24 +08:00
yetone
763dbe064d fix: line content (#1264) 2025-02-13 13:23:28 +08:00
yetone
76c06ed277 fix: tools return json (#1263) 2025-02-13 11:54:54 +08:00
yetone
ce55d7ac9e refactor: better value name (#1261) 2025-02-13 01:39:02 +08:00
yetone
9bad591e8a fix: lowercase filepath bad case (#1259) 2025-02-12 22:59:15 +08:00
yetone
f8636315a5 fix: get filetype (#1258) 2025-02-12 22:19:55 +08:00
yetone
3a7277386f fix: mkdir for new file (#1257) 2025-02-12 22:02:12 +08:00
Giuseppe Capasso
4f0bf40a9d Fix: musl build error (#1249) 2025-02-12 21:52:38 +08:00
yetone
c89741e98b fix: base prompts (#1255) 2025-02-12 21:46:11 +08:00
yetone
456f7ccdab fix: search/replace tag bad cases (#1248) 2025-02-11 23:49:37 +08:00
yetone
72edea97cb optimize: prompts (#1247) 2025-02-11 23:11:03 +08:00
Thomas Müller
f660350cdc fix(tavily): remove time restriction of 1 day (#1241) 2025-02-11 15:57:38 +08:00
guanghechen
31c1701660 📝 docs(README): update customized file_selector example (#1242)
* 📝 docs(README): update customized file_selector example

* fix types
2025-02-11 15:57:15 +08:00
yetone
3305bdb769 Revert "Update Cargo.toml with mlua dependency and features for successful bu…" (#1245)
This reverts commit cdacfce901.
2025-02-11 15:56:11 +08:00
yetone
b73b3d7888 fix: file not found (#1243) 2025-02-11 15:54:57 +08:00
b9Joker108
cdacfce901 Update Cargo.toml with mlua dependency and features for successful build as per my manual build on an aarch64 proot-distro alias of Debian in an unrooted Termux host. NOTE: This is soon to be my first official OS commit and soon to be my first official pull request. (#898) 2025-02-11 13:50:26 +08:00
guanghechen
6d116fac36 feat(file_selector): support customized file selector method (#1204) 2025-02-11 13:49:00 +08:00
synic
0bfbd39ebc fix(sidebar): fix various focus errors (#1237)
This fixes a bunch of errors I was getting when switching away from the
avante sidebar and then back. Sometimes the sidebar would lose track of
the various windows, and you'd get errors like this:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

Or this one:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

This change does the following:

1. Proper order of cleanup in `reset()`
2. Proper cleanup in `create_selected_files_container()`
2025-02-11 13:42:23 +08:00
yetone
62c29b3d0c fix: incorrect replace end tag (#1240) 2025-02-11 12:11:16 +08:00
Thomas Müller
3f8b6d07ba feat(sidebar): add member function to check whether the sidebar is focused (#1216) 2025-02-11 11:36:38 +08:00
Thomas Müller
a6ae8ad4b7 fix(sidebar): reset cursor to beginning of prompt on submit (#1213)
This fix is required for users with vim.o.virtualedit="all". Otherwise,
the cursor remains at the end of the prompt and has to be manually moved
back before entering the next prompt.
2025-02-11 11:36:19 +08:00