450 Commits

Author SHA1 Message Date
teocns
36b23cef16
feat: add repo map display (#727)
Co-authored-by: yetone <yetoneful@gmail.com>
2024-10-18 14:41:40 +08:00
yetone
26bf8d67e8
fix: failed to rename buffer (#731) 2024-10-17 00:36:13 +08:00
yetone
a0d3845bf3
fix: failed to rename buffer (#730) 2024-10-16 23:57:40 +08:00
yetone
9907f05fbf
fix: cannot rename buffer (#729) 2024-10-16 18:05:19 +08:00
yetone
595ea56fc1
fix: compatible with backquoted returns (#728) 2024-10-16 16:23:02 +08:00
yetone
7c83558b37
feat: smart position (#725) 2024-10-15 17:12:10 +08:00
yetone
8c28e285ea
perf(sidebar): update the buffer more efficiently (#724) 2024-10-15 12:30:20 +08:00
Jakkapat Paijit
86ba5a468b
feat(api): add switch sidebar focus (#709) 2024-10-15 11:24:48 +08:00
Maddison Hellstrom
964715be64
feat: floating input (#721)
* feat: add floating input to ask method

Open a floating input similar to the "edit" input for the "ask" input.
Enabled in config via `Config.windows.ask.floating` or by passing
`{ floating = true }` to the `api.ask` method.

Includes logic to ensure the sidebar uses the correct buffer and selection
if an existing sidebar is open for another code buffer.

Also refactored the `selection` module to extract the floating input
logic into a new `PromptInput` class.

* docs: update config options

* feat: more accurate annotations to prevent user misunderstandings

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-10-15 11:22:34 +08:00
yetone
b19573cb2a
feat: write to multiple files (#720) 2024-10-14 20:15:11 +08:00
Maddison Hellstrom
347d9be730
feat: allow pressing apply_all mapping anywhere in sidebar (#528) (#712)
- make apply and apply_all mappings configurable
- fixed bug where apply mapping was not unbound in unbind_apply_key
- allow apply_all mapping to be pressed anywhere in the sidebar

fixes #528
2024-10-12 18:41:08 +08:00
Lucas Pereira
e010c5541e
fix: typos in planning prompt (#703)
Co-authored-by: Lucas Pereira <lpereira@dickson-constant.com>
2024-10-12 17:16:23 +08:00
Aaron Batilo
f92c3a60f3
fix: support legacy finish_reason (#706)
Many OpenAI compatible alternative servers are still returning a
`finish_reason` of `eos_token` instead of `stop`. This commit adds
support for that to support more of these servers/options.
2024-10-11 21:46:34 +08:00
yetone
faaa7f223b
fix: keep correct indentation (#710) 2024-10-11 21:07:55 +08:00
yetone
134609a04c
fix: only provide suggestions for the selected code (#702) 2024-10-10 20:34:20 +08:00
Leiser Fernández Gallo
ec31f348b2
fix(save): schedule save within a loop (#560) 2024-10-10 20:04:37 +08:00
yetone
4132485487
fix: stream display replacement content (#699) 2024-10-10 05:05:29 +08:00
yetone
3dac407a11
fix: should not get the previous visual selection (#698) 2024-10-09 17:16:01 +08:00
yetone
e78f5b28a5
fix: missing breakline in context prompt template (#690) 2024-10-08 17:43:21 +08:00
yetone
895b0f4143
fix: get selection range from previous visual mode (#689) 2024-10-08 16:29:18 +08:00
Changmin Choi
08bed9e256
Handle backticks before decoding JSON (#683)
* feat: Clean up full_response before JSON decoding

* fix: make backtick matching more accurate
2024-10-08 16:13:56 +08:00
Huite
2a72dfa711
feat: write curl body to a temporary JSON file (#673)
* Write curl body to a temporary JSON file.

* Remove temp file after use

* feat: use vim.fn.delete to delete files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-10-07 23:53:18 +08:00
Dennis Dillert
c3848d086c
fix: ensure paths are recreated after calling :AvanteClear to avoid errors (#678) 2024-10-05 17:49:15 +08:00
yetone
0705234991
refactor: planning mode user prompt use aider prompt (#671) 2024-09-30 19:38:31 +08:00
yetone
93ab85ab93
fix: make installation method part as required (#669) 2024-09-30 18:10:40 +08:00
yetone
21b2668c7f
chore: add how-to-install in bug report template (#668) 2024-09-30 18:08:42 +08:00
yetone
6e1e80532e
chore: bug report template whith os info (#667) 2024-09-30 18:07:13 +08:00
yetone
5ab86c879c
chore: bug report template whith os info (#666) 2024-09-30 18:01:50 +08:00
Boy Maas
bac46cee83
feat(repo-map): zig support (#663)
* feature: zig support for repo map

* Update crates/avante-repo-map/Cargo.toml

Co-authored-by: yetone <yetoneful@gmail.com>

* fix: update lint error

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
Co-authored-by: yetone <yetoneful@gmail.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-29 13:27:10 -04:00
yetone
d28fece472
fix: revert cargo-zigbuild (#664)
* Revert "fix(release): install openssl headers (#662)"

This reverts commit 6aaaeda003599c7e64492c11e2a63e7c5efaf98a.

* Revert "fix(release): setup zig for cargo-zigbuild (#661)"

This reverts commit e3e5785a1a9c257083e6f9f86cdb66486a1d6b47.

* Revert "feat(release): use cargo-zigbuild to build for glibc 2.17 (#660)"

This reverts commit 2ff2456fcb8af8fe8aff36278014d6e42fe6a354.
2024-09-29 02:14:17 +08:00
yetone
6aaaeda003
fix(release): install openssl headers (#662) 2024-09-28 21:45:21 +08:00
yetone
e3e5785a1a
fix(release): setup zig for cargo-zigbuild (#661) 2024-09-28 14:06:23 +08:00
yetone
2ff2456fcb
feat(release): use cargo-zigbuild to build for glibc 2.17 (#660) 2024-09-28 14:01:54 +08:00
yetone
ac959ccbbe
fix(repo-map): only return top level definitions (#659) 2024-09-27 22:23:45 +08:00
Sapir Shemer
d74c9d0417
feat: supports openai o1-preview
* feat: make O1 models on openai work by handle non-streams & correct
parameters

* chore: set temperature automatically when using o1 models
2024-09-27 21:08:10 +08:00
yetone
64f26b9e72
chore: update badges (#658) 2024-09-27 20:58:56 +08:00
doodleEsc
e5dc837715
fix: unregister completion source where BufLeave (#656)
- Add an autocommand to unregister completion sources when leaving the buffer
- Include a description for the new autocommand for better clarity

Co-authored-by: fanlizhou <fanlizhou@yunqilaohe.com>
2024-09-27 20:27:24 +08:00
yetone
f3ee77dd5b
fix(release): only x86_64 integrates a lower version of glibc because docker arm64 builds too slowly (#653) 2024-09-27 02:27:18 +08:00
yetone
302f207951
fix(repo-map): do not report errors when encountering unsupported languages (#652) 2024-09-27 02:19:01 +08:00
yetone
131d800c16
fix(release): use sudo (#651) 2024-09-27 01:23:04 +08:00
yetone
80e4ce31b0
fix(release): install qemu to use docker arm64 platform (#650) 2024-09-27 01:15:22 +08:00
yetone
b757b1971e
fix(release): munually use docker to build with multi-arch glibc (#649) 2024-09-27 01:05:12 +08:00
yetone
4917f0966c
fix(release): downgrade upload release asset action to use old nodejs version (#648) 2024-09-27 00:37:04 +08:00
yetone
fc71cc26fb
fix(release): install esenttial dependencies openssl-devel (#647) 2024-09-27 00:24:52 +08:00
yetone
93abd8e525
fix(release): source cargo env (#646) 2024-09-26 23:59:07 +08:00
yetone
753b77425b
fix(release): source cargo env (#645) 2024-09-26 23:54:46 +08:00
yetone
9387c8ad45
fix(release): manually install Rust to support lower versions of glibc (#643) 2024-09-26 20:26:10 +08:00
yetone
1fca51917e
fix(release): use glibc 2.17 (#642) 2024-09-26 20:04:49 +08:00
yetone
0c97dfe5e9
feat: supports windows aarch64 (#640) 2024-09-26 11:54:11 +08:00
yetone
f2cec70d4c
chore: log build command (#639) 2024-09-26 11:47:54 +08:00