Commit Graph

245 Commits

Author SHA1 Message Date
Kasper Seweryn
c4fa4621fb fix: remove stale popup buffers (#1530)
* fix: remove stale popup buffers

* fix: restore the logic for updating the buffer

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2025-03-12 16:43:25 +08:00
yetone
5a1f9fcfb9 fix: trim empty last line (#1556) 2025-03-11 15:20:58 +08:00
yetone
558a7bbd38 fix: close_from_input keybinding types (#1546) 2025-03-10 15:54:01 +08:00
Jae-Won Chung
9fa2d9e51d fix: remove sidebar.close_from_input default keybinding (#1536)
* Remove <c-d> from default insert mode keybinding

* Check `close_from_input ~= nil` before keymap

* Default `close_from_input` to `nil`

* Update README.md keybinding defaults

* Try to pass type check
2025-03-10 15:31:13 +08:00
Canopus
4976807a33 fix: thrown error when trying to use codebase with no buffer opened (#1541)
* Fix - Fix thrown error when trying to use @codebase with no buffer opened

* Style - Fix stylua formatting in repo_map and sidebar

* Fix - Restore code selection handling in sidebar
This was a mistake on my part while rushing to make the PR. I deleted an
unrelated commit that got sent by mistake, and during the second review,
I didn't notice that this important code selection functionality was
removed. The code has now been properly restored.
2025-03-10 00:20:43 +08:00
yetone
05b3b843c8 fix: selected code (#1542) 2025-03-10 00:17:24 +08:00
yetone
a0e0924730 feat: carry recently viewed files as context (#1538) 2025-03-09 15:42:31 +08:00
yetone
868c136574 refactor: remove use_xml_format (#1535) 2025-03-09 14:58:30 +08:00
brook hong
4766e76a31 feat: add key mappings to close sidebar in input_container (#1494)
* add key mappings to close sidebar in input_container
* add autocmd to enter normal mode on leaving input_container
* add autocmd to enter insert mode on entering input_container
2025-03-08 12:55:13 +08:00
yetone
d75094b815 fix: bedrock (#1524)
* fix: bedrock

* fix: bad variable name

* fix: missing metatable
2025-03-08 02:17:28 +08:00
yetone
8620ea3e12 refactor: summarize memory (#1508) 2025-03-07 00:12:57 +08:00
Jie Liu
3fae794ea8 fix: sub-folder creation on Windows (#1468) 2025-03-03 15:08:39 +08:00
Peter Cardenas
ac9d2b3888 feat: disable tools with config (#1459)
* chore: use missing generic for AvanteLLMToolFunc

* feat: add disabled_tools config
2025-03-02 11:29:23 +08:00
yetone
0d592f440c Revert "refactor: message content (#1424)" (#1442)
This reverts commit ae8497faf1.
2025-03-01 13:25:51 +08:00
yetone
ae8497faf1 refactor: message content (#1424) 2025-02-28 14:43:39 +08:00
yetone
ebadba7420 fix: claude extended thinking (#1419) 2025-02-27 15:21:00 +08:00
yetone
481a44f041 fix: cursor applying diff (#1387) 2025-02-25 14:34:26 +08:00
Peter Cardenas
afa674c6fd chore: prefer not to use function assignment (#1381) 2025-02-25 12:08:03 +08:00
yetone
c9134eb8ed feat: add debug method for cursor applying (#1375) 2025-02-25 02:22:25 +08:00
yetone
b627b335dd feat: add generic type for llm func (#1373) 2025-02-24 21:54:36 +08:00
Peter Cardenas
fe496a9573 chore: make tool func type more accurate (#1369) 2025-02-24 21:49:06 +08:00
yetone
fd84c91cdb feat: RAG service (#1220) 2025-02-23 01:37:26 +08:00
yetone
b04bffa441 fix: types (#1344) 2025-02-22 23:24:20 +08:00
zc he
caa8342508 fix: use tree-sitter-markdown to extract code snippets (#1315)
Co-authored-by: yetone <yetoneful@gmail.com>
2025-02-21 17:17:12 +08:00
yetone
2ac53d75de Revert "fix: finally diff in cursor planning mode again (#1338)" (#1339) 2025-02-21 15:57:13 +08:00
yetone
2550709cd4 fix: finally diff in cursor planning mode again (#1338) 2025-02-21 15:04:30 +08:00
yetone
5a2e8760f4 fix: finally diff in cursor planning mode (#1337) 2025-02-21 14:42:22 +08:00
yetone
45604b25f8 feat: support edit and retry user request (#1335) 2025-02-21 14:00:53 +08:00
yetone
2d8f25efad fix separator (#1329) 2025-02-21 00:53:10 +08:00
yetone
6177bbabfc fix: intelligently obtain filepath (#1321) 2025-02-20 16:45:42 +08:00
yetone
5966529997 fix: resp separator (#1320) 2025-02-20 16:14:25 +08:00
yetone
a6b24f3387 fix: use the current filepath when the filepath of code block cannot be found (#1319) 2025-02-20 16:02:52 +08:00
yetone
8f1226a74f fix: precise code block matching (#1318) 2025-02-20 15:46:10 +08:00
yetone
5b006624e6 feat: cursor planning mode enabled by default (#1316) 2025-02-20 13:06:17 +08:00
yetone
3476eabc4c fix: selected code container height (#1308) 2025-02-19 19:39:01 +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
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
yetone
603bd7f8ec optimize: live diff performance (#1297) 2025-02-18 22:41:58 +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
yetone
c60dc6c316 fix: case insensitive (#1275) 2025-02-14 12:28:39 +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
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
yetone
456f7ccdab fix: search/replace tag bad cases (#1248) 2025-02-11 23:49:37 +08:00
yetone
b73b3d7888 fix: file not found (#1243) 2025-02-11 15:54:57 +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