532 Commits

Author SHA1 Message Date
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
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
b73b3d7888
fix: file not found (#1243) 2025-02-11 15:54:57 +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
Thomas Müller
8d82abe043
feat: expose whether the llm is currently generating content (#1181) 2025-02-11 11:35:28 +08:00
Thomas Müller
63136fd92f
fix(suggestions): make history more faithful to future input (#1210)
* fix(suggestions): make history more faithful to future input

* fix(suggestions): put cursor to the end of line in suggestion history
2025-02-11 02:08:58 +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
Omar Crespo
6e18616c16
fix: dual boost only in planning mode (#1215) 2025-02-11 01:40:49 +08:00
Amin Roosta
c07d396e30
feat(web_search_engine): adds google as a provider (#1226) 2025-02-10 13:21:55 +08:00
yetone
59fdbd72a4
fix: get abs path (#1232) 2025-02-10 02:08:58 +08:00
yetone
26e40e5483
fix: apply non-existent file (#1224) 2025-02-09 01:56:59 +08:00
Daniel Tabuenca
987275c64a
feat: bedrock temporary credentials support (#1207) 2025-02-09 01:40:20 +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
faa6728d4b
fix: try to fix suggestions (#1209) 2025-02-07 16:26:35 +08:00
yetone
e8b0f33f18
fix(prompts): use run_command if possible (#1208) 2025-02-07 15:33:23 +08:00
yetone
c2b3cd7a32
fix: check gemini api key (#1205) 2025-02-07 13:21:45 +08:00
yetone
fd64662fa2
fix: planning prompts (#1202)
* fix: planning prompts

* fix: base prompts
2025-02-06 23:16:49 +08:00
yetone
29a71b2976
fix: insert conflict contents (#1201) 2025-02-06 22:24:59 +08:00
yetone
152d0c609c
feat: serpapi (#1198) 2025-02-06 20:10:55 +08:00
yetone
402c7f9665
fix: copilot tool histories (#1197) 2025-02-06 19:19:50 +08:00
yetone
1ec12907a2
feat: fetch tool (#1196) 2025-02-06 19:13:47 +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
e1125fca54
feat: bedrock use tools (#1184) 2025-02-06 00:03:49 +08:00
yetone
3aaf7dad77
feat: tools support copilot (#1183) 2025-02-05 23:47:52 +08:00
yetone
0603364ea8
fix: typo (#1182) 2025-02-05 23:13:07 +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
ccolorado
1726d32778
fix: typo on config comment (#1161) 2025-02-04 17:06:56 +08:00
Oliver Lorton
5e1334f4e5
feat: reduces the impact of the shade function when in light mode (#1177) 2025-02-04 15:26:09 +08:00
yetone
a9ab429699
feat: trim think content in history messages (#1178) 2025-02-04 15:25:36 +08:00
yetone
ef4b6077ec
feat: supports openrouter reasoning (#1174) 2025-02-04 01:38:18 +08:00
ken
43269cc07f
Feat: Add Amazon Bedrock provider (#1167) 2025-02-03 22:33:25 +08:00
yetone
cd7390de21
fix: remove unnecessary think tag (#1173) 2025-02-03 22:32:41 +08:00
Adam Sherwood
349c5f895c
fix: allow single or multi selection with mini.pick. (#1169) 2025-02-03 22:13:37 +08:00
yetone
ec3593aac6
Revert "fix(file_selector): make sure to flatten selected_paths if picker yie…" (#1172) 2025-02-03 22:01:15 +08:00
yetone
8536d102be
fix: reasoning content processing (#1171) 2025-02-03 21:55:12 +08:00
yetone
5ac934f228
chores: remove debug log (#1160) 2025-02-02 02:29:41 +08:00