103 Commits

Author SHA1 Message Date
1A7432
7dfd086e21 fix: add proper ACP process cleanup on exit (#2723)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-16 19:08:35 +08:00
yetone
487972386e feat: support acp slash commands (#2775) 2025-10-16 19:05:57 +08:00
yetone
0955c2913f feat: zen mode (#2679) 2025-09-03 12:51:43 +08:00
yetone
7c4f88606c fix: full view width (#2662) 2025-08-31 23:02:42 +08:00
yetone
e63427fb9a fix: do not auto resize in full view (#2661) 2025-08-31 22:09:18 +08:00
yetone
ff116a5673 feat: add full_view_ask api (#2658) 2025-08-31 19:17:20 +08:00
brook hong
40af7113a2 Add option custom_init to enable user to customize behaviour of sidebar (#2630)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-24 02:57:52 +08:00
Dmitry Torokhov
fed6902c9a feat!(selection): do not display hint immediately
Selection hint that is displayed immediately upon entering visual mode
([<leader>aa: ask, <leader>ae: edit]) gets old pretty quickly. Add a
config option to control when the hint is displayed:

  selection = {
    enabled = true,
    hint_display = "delayed",
  },

The "hint_display" option recognizes the following values:

- "immediate" results in the hint being shown immediately after entering
  visual mode. This is the old behavior.
- "delayed" causes the hint be displayed only if the cursor has not been
  moved for vim.o.updatetime milliseconds. This is the new default.
- "none" suppresses showing the hint completely.

Unfortunately "CursorHold" event is not emitted in visual mode so we
have to emulate it using Utils.debounce().

This is a breaking change because selection behavior was controller by
"hints" config entry which makes little sense, so the config section and
associated commands were renamed to "selection".

Additionally the "hints"/"selection" was mapped to "<leader>ah", but the
very same key combination was used to select from old Avante chat
histories, which overrode the toggle. New selection toggle keymap is
"<leader>aC".
2025-08-16 14:45:52 +08:00
doodleEsc
faa3945428 feat: implement user-defined text shortcuts (#2512)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-23 11:54:59 +08:00
aniaan
aae4cc4014 refactor(cmp): Extract get_chat_mentions for third-party cmp source usage (#2027) 2025-05-12 20:19:42 +08:00
aniaan
113913355a feat(sidebar): Add option and keymap to start a new chat directly (#2004) 2025-05-07 15:27:50 +08:00
ecal
77f000f8a8 Close avante sidebar before vimexit (fixes sessions) (#1803)
* fix: close avante sidebar before vimexit

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-04-08 19:55:08 +08:00
yetone
d76a158b61 feat: custom slash commands (#1826) 2025-04-07 22:19:59 +08:00
kyrisu
78d6c389b4 feat: add command to include all buffer files in file selector (#1748) 2025-03-28 10:24:49 +08:00
yetone
cf230f4bc8 fix: setup highlights (#1694) 2025-03-24 16:51:09 +08:00
yetone
86b63b2a33 chores: refine ui (#1663) 2025-03-22 00:42:20 +08:00
Omar Crespo
bae5275705 feat: add stop sequence (#1652) 2025-03-21 19:34:33 +08:00
yetone
1c8cac1958 feat: history manager (#1644) 2025-03-19 17:28:05 +08:00
yetone
6f98cb0ed6 fix: fetch llm tool no longer depends on system libssl.so (#1404) 2025-02-26 17:36:01 +08:00
Peter Cardenas
afa674c6fd chore: prefer not to use function assignment (#1381) 2025-02-25 12:08:03 +08:00
Ojas Kavathe
4be3574583 fix: load avante_lib synchronously when not using lazy (#1345) 2025-02-23 15:11:39 +08:00
yetone
c558a1d0ac fix: remove err msg in docker (#1356) 2025-02-23 02:17:23 +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
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
1ec12907a2 feat: fetch tool (#1196) 2025-02-06 19:13:47 +08:00
yetone
4464b7f4ae fix: load path (#926) 2024-12-06 01:35:33 +08:00
Aaron Pham
16e10c5f88 revert: restore AvanteBuild (fixes #792) (#799) 2024-11-04 20:44:45 -05:00
Aaron Pham
4282cda0ac feat(health): support checkhealth for plugins and providers (#769) 2024-10-29 07:00:05 -04:00
Cristian Hernandez
3f947f8deb fix: diff highlights doesn't reapply in colorscheme change (#744) 2024-10-22 10:42:02 +08:00
teocns
36b23cef16 feat: add repo map display (#727)
Co-authored-by: yetone <yetoneful@gmail.com>
2024-10-18 14:41:40 +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
0d90c047ef feat: avante repo map rust crate (#628) 2024-09-26 03:45:49 +08:00
Anthony Flores
dadf0dc48b fix: use correct non-nil variables (closes #568) (#587) 2024-09-15 10:55:08 -04:00
Aaron Pham
7015dde5bf chore(mapping): add support for toggling suggestion (#546)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-06 01:09:02 -04:00
Aaron Pham
e18fd41180 chore(cmd): AvanteChat (#542)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-05 02:48:49 -04:00
Aaron Pham
29e109e447 feat(api): support native chat mode (#541)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-05 02:43:31 -04:00
Aaron Pham
d10cca4265 feat(api): support for ask customization (#527)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-04 09:15:32 -04:00
GNITOAHC
a4a037cec1 feat(cmd): AvanteClear (#518)
Remove all cache/history path.

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-09-04 07:38:59 -04:00
Aaron Pham
b48b6b7afd chore(build): streaming stdout (#511)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-04 00:21:41 -04:00
Aaron Pham
d395aa3fea chore: set build from source to false (#494)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 15:49:41 -04:00
Aaron Pham
24b66e08dc fix(install): prebuilt instruction (closes #474) (#476)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 06:53:14 -04:00
Aaron Pham
a5726bd2bf feat(crates): prebuilt binaries (#473)
* feat(crates): prebuilt binaries

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

* chore: update name

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

* chore: build on PR

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

* chore: only build for lua51 and luajit

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

* feat: build stuff

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

* chore: only build if changes in Rust

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

* fix: remove deadcode

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 06:20:53 -04:00
Aaron Pham
0d8098e4eb fix(style): add parentheses (#471)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 05:12:07 -04:00
Aaron Pham
e8c71d931e chore: run stylua [generated] (#460)
* chore: add stylua

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

* chore: running stylua

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:19:54 -04:00
Aaron Pham
4ad913435c feat(templates): avanterules filetype support (closes #254) (#466)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:09:13 -04:00
yetone
65e1e178f5 feat: automatic suggestion (smart tab) (#455) 2024-09-03 14:03:59 +08:00
Aaron Pham
7266661413 feat(api): enable customizable calls functions (#457)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-02 12:22:48 -04:00
Aaron Pham
0557deeab7 feat: tokenizers (#429)
* feat: tokenizers

This reverts commit d5a4db8321.

* fix(inputs): #422

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-31 13:39:50 -04:00