Commit Graph

224 Commits

Author SHA1 Message Date
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
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
Thomas Müller
8d82abe043 feat: expose whether the llm is currently generating content (#1181) 2025-02-11 11:35:28 +08:00
Oliver Lorton
cc46386130 fix: when dev icons absent (#1214)
* Add helper function to check for dev icon availability

* Add function to display dev icon or nothing if icon plugins unavailable

* Fix existing use of icons

* Reformat with stylua
2025-02-11 01:43:01 +08:00
yetone
26e40e5483 fix: apply non-existent file (#1224) 2025-02-09 01:56:59 +08:00
yetone
4ffec5a039 fix: search/replace bad case (#1223) 2025-02-09 01:39:00 +08:00
yetone
e70b0fa243 fix: incorrect indentation (#1222) 2025-02-09 00:21:32 +08:00
yetone
29a71b2976 fix: insert conflict contents (#1201) 2025-02-06 22:24:59 +08:00
yetone
5f6612fb8c fix: support multiple tool use (#1192) 2025-02-06 16:41:28 +08:00
yetone
f2bd4adba4 feat: add add_file_to_context tool (#1191) 2025-02-06 16:00:14 +08:00
yetone
4f41154e83 feat: tool logs (#1190) 2025-02-06 15:15:44 +08:00
yetone
d1cc23fa54 fix: multiple tool use histories and disable tools (#1185) 2025-02-06 02:46:52 +08:00
yetone
1437f319d2 feat: tools (#1180)
* feat: tools

* feat: claude use tools

* feat: openai use tools
2025-02-05 22:39:54 +08:00
yetone
a9ab429699 feat: trim think content in history messages (#1178) 2025-02-04 15:25:36 +08:00
yetone
d1286e7bfb feat: enable token counting (#1157) 2025-02-02 01:27:12 +08:00
Christopher Brewin
0a273c2f5d feat(sidebar): move quit and close key mappings into config values. (#979) 2025-02-01 09:48:11 -05:00
yetone
2ead26f809 feat: thinking 🤯 2025-01-27 22:54:24 +08:00
Yunlong
e849fc2c15 fix: prevent nil result_container error on buffer detach (#1123)
Co-authored-by: yetone <yetoneful@gmail.com>
2025-01-24 11:29:11 +08:00
yetone
c3dd0630f1 feat: not focusing on the last line when the cursor moves (#1110) 2025-01-21 00:32:04 +08:00
yetone
76f60794c3 fix: release the cursor when generating (#1109) 2025-01-21 00:04:48 +08:00
Seong Yong-ju
12beaebb2a chore(sidebar): set different filetype for the selected files buffer (#1097)
Set different filetypes so that [edgy.nvim](https://github.com/folke/edgy.nvim)
can easily identify the result buffer and the selected files buffer.
2025-01-17 00:47:01 +08:00