Commit Graph

1217 Commits

Author SHA1 Message Date
Shaobin Jiang
0aaa91d267 fix: switch_windows keymap not reflected in sidebar (#2675) 2025-09-03 14:01:31 +08:00
yetone
181befe20b fix: validate oldText and newText before render diff (#2681) 2025-09-03 14:01:22 +08:00
yetone
0955c2913f feat: zen mode (#2679) 2025-09-03 12:51:43 +08:00
yetone
73a797616b feat: use zed claude code acp (#2678) 2025-09-03 12:14:25 +08:00
yetone
9f0bb4bfb9 fix: compatible with zed claude code acp (#2676) 2025-09-03 00:12:49 +08:00
yetone
ebed32d7e3 fix: resource link for acp (#2674) 2025-09-02 22:17:34 +08:00
yetone
dd97d5a166 chores: add hl for truncated messages (#2672) 2025-09-02 19:19:48 +08:00
yetone
968a9a065d fix: better tool name (#2671) 2025-09-02 16:02:13 +08:00
yetone
a4a4c91711 fix: wrap all ACP handlers in vim.schedule to ensure safe UI operations (#2670) 2025-09-02 13:37:26 +08:00
yetone
8794356cf4 feat: better tool ui (#2669) 2025-09-01 22:52:54 +08:00
yetone
15d19518b1 feat: better tool ui (#2668) 2025-09-01 22:31:38 +08:00
yetone
b3b9327fec fix: reload buffer after the file is written (#2667) 2025-09-01 18:54:46 +08:00
yetone
fe928d2f96 fix: get buffer in fast event (#2666) 2025-09-01 18:42:48 +08:00
yetone
4062e36083 fix: cannot change provider model when last use model be stored (#2665) 2025-09-01 11:57:00 +08:00
yetone
4af25547db fix: refine separator in full view (#2664) 2025-08-31 23:11:00 +08:00
yetone
8ca7f75ce4 fix: new chat width in full view state (#2663) 2025-08-31 23:07:13 +08:00
yetone
7c4f88606c fix: full view width (#2662) 2025-08-31 23:02:42 +08:00
brook hong
604fdcc4b1 feat: add project root option in commands Ask/Chat/ChatNew (#2659) 2025-08-31 22:10:29 +08:00
yetone
e63427fb9a fix: do not auto resize in full view (#2661) 2025-08-31 22:09:18 +08:00
yetone
bcbe0347d8 feat: supports full view in multi-window mode (#2660) 2025-08-31 21:33:57 +08:00
yetone
ff116a5673 feat: add full_view_ask api (#2658) 2025-08-31 19:17:20 +08:00
brook hong
47877c7e8b fix: bedrock exception could be found at end of a stream (#2654) 2025-08-31 19:11:04 +08:00
yetone
35acffad9a feat: support selected code prompt for ACP (#2657) 2025-08-31 16:24:20 +08:00
yetone
5e0aa7e5c0 feat: support acp (#2649) 2025-08-31 07:41:19 +08:00
brook hong
9008fc4f41 feat: add project_root in AskOptions so that project root can be specified from api (#2652) 2025-08-30 18:07:59 +08:00
brook hong
f70c4b8b88 fix: use common files to find project root (#2651) 2025-08-29 21:10:08 +08:00
brook hong
751e4c0913 feat: support multiple models for bedrock (#2648) 2025-08-28 20:23:05 +08:00
brook hong
9fe429eb62 fix: dispatch cancel message on user cancelling request in retry. (#2644)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-27 12:23:32 +08:00
Fabian Klopfer
11e457e56b [feat] Add basic support for IBM's watsonx code assistant (#2617)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-26 17:26:15 +08:00
Yinzuo Jiang
29111ac042 fix: AvanteShowRepoMap failed to parse query for c (#2629)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-26 17:19:47 +08:00
Yinzuo Jiang
f643b262cc fix: empty tool array reports an error for some LLM models (#2639)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-26 17:19:29 +08:00
brook hong
fe57497123 fix: log response headers for debug (#2642) 2025-08-26 16:43:03 +08:00
brook hong
ce2c9ea5a2 fix: reset cache for project root if buf name changed (#2638) 2025-08-25 10:30:00 +08:00
brook hong
2791db9984 fix: stop timer for retry on canceling inflight request (#2637)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-24 16:31:57 +08:00
忍野ペンギン
8a2ed691c0 fix: handle is already closing (#2613)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-24 16:21:55 +08:00
brook hong
b3289ff51a fix: wrap user input in task only in agentic mode (#2636) 2025-08-24 15:47:30 +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
Ahmed Siddiqui
212797a2f2 Add config to limit max height for selected files (#2618) 2025-08-19 15:39:08 +08:00
samuelm00
0a603efad1 add possibility to define a project based instruction file 2025-08-19 14:53:40 +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
yetone
bd2079a5cc chore: remove dead code and commented out blocks (#2611) 2025-08-16 14:45:27 +08:00
brook hong
c1ccb7867a fix: remove trailing spaces each line when editing files (#2612) 2025-08-16 14:16:38 +08:00
yetone
be0937a459 fix: timer already closed (#2608) 2025-08-14 17:55:24 +08:00
Peter Cardenas
59ba16202e fix: lazy load AvanteEdit (#2602) 2025-08-13 20:11:27 +08:00
yetone
1e0c8520bc fix: the last used model caused the loss of the model configured in the profile in the model selector (#2600) 2025-08-12 15:33:31 +08:00
Dmitry Torokhov
638d237b75 refactor(utils): make prepend_line_numbers() more efficient and idiomatic
Between Utils.prepend_line_number() and its only caller, there is a lot
of conversions from list to string to list and back to string. Simplify
all of this by making it accept and return a list of strings, which
avoids unnecessary splitting and joining.

The implementation was updated to use vim.iter():map() and
string.format() for better performance and to align with the idiomatic
functional style used elsewhere in the project.

The name of the function has also been tweaked and is now
"prepend_line_numbers()" to better reflect that it operates on a list of
strings.

The caller has been updated to match the new function signature.
2025-08-12 15:14:37 +08:00
Dmitry Torokhov
76fe3f615a refactor(utils): switch debounce() and throttle() to use vim.defer_fn()
vim.defer_fn() does exactly what half of Utils.debounce() and
Utils.throttle() code does, so use it.

While at it add function annotations.
2025-08-12 15:14:37 +08:00
you-n-g
16c58c2e6f fix: update config.lua default value for gpt-5-chat (#2594) 2025-08-12 15:13:44 +08:00
Peter Cardenas
dd151e7f45 fix: allow lazy loading AvanteAskNew (#2598) 2025-08-12 15:13:20 +08:00
brook hong
5a4ed4ac92 feat: add mappings to toggle code window from input in sidebar (#2591) 2025-08-08 20:11:06 +08:00