55 Commits

Author SHA1 Message Date
Dmitry Torokhov
4fc83dc308 cleanup: use vim.uv instead of vim.loop everywhere (#2762) 2025-10-15 18:44:40 +08:00
yetone
0955c2913f feat: zen mode (#2679) 2025-09-03 12:51:43 +08:00
yetone
ff116a5673 feat: add full_view_ask api (#2658) 2025-08-31 19:17:20 +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
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
Peter Cardenas
59ba16202e fix: lazy load AvanteEdit (#2602) 2025-08-13 20:11:27 +08:00
Peter Cardenas
dd151e7f45 fix: allow lazy loading AvanteAskNew (#2598) 2025-08-12 15:13:20 +08:00
Dmitry Torokhov
7d60b51324 refactor(sidebar): move sub-windows into a table
Maintaining secondary table of window IDs is cumbersome and is prone to
getting out of sync with the true state of the sidebar. In preparation
for removal of winids table move all containers (sub-windows of the
sidebar) into "containers" table.

The change is mostly mechanical rename with following exceptions:

 - Sidebar:reifresh_winids() and other places where the code scanned
   entire Sidebar object looking for tables with specific fields, such
   as "winid", or "mount" needed to be adjusted for the new structure

 - Sidebar:new() and Sidebar:reset() have been adjusted to make better
   use of the new sub-table.
2025-07-21 13:31:07 +08:00
Dmitry Torokhov
b051ce449a fix: slow typing in input window and other input hint optimizations (#2418) 2025-07-07 16:45:35 +08:00
yetone
3033556d5b fix: tool calling (#2297) 2025-06-22 21:50:26 +08:00
doodleEsc
2dd4c04088 feat: Enhanced Model Provider Support and Configuration Flexibility For Rag Service (#2056)
Co-authored-by: doodleEsc <cokie@foxmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-06 23:07:07 +08:00
Avinash Thakur
ec0f4f9ae0 feat: allow custom input provider, removing dressing.nvim (#2173)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: yetone <yetoneful@gmail.com>
2025-06-06 23:04:35 +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
doodleEsc
0b78b58760 feat(file_selector): add intergration with nvim-tree.lua (#1987)
Co-authored-by: doodleEsc <cokie@foxmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-05-06 00:06:41 +08:00
yetone
f10b8383e3 refactor: history messages (#1934) 2025-04-30 03:07:18 +08:00
yetone
756d1f1e24 feat: universal selector (#1877) 2025-04-15 16:40:47 +08:00
yetone
0828d32346 fix: AvanteEdit command (#1799) 2025-04-02 16:27:10 +08:00
kyrisu
78d6c389b4 feat: add command to include all buffer files in file selector (#1748) 2025-03-28 10:24:49 +08:00
Omar Crespo
bae5275705 feat: add stop sequence (#1652) 2025-03-21 19:34:33 +08:00
yetone
8c9cd1a7b2 Revert "feat: Allow Chat Sidebar to Replace the Main Window (No Split) (#1638)" (#1648)
This reverts commit 31041f6d65.
2025-03-20 03:25:08 +08:00
brook hong
31041f6d65 feat: Allow Chat Sidebar to Replace the Main Window (No Split) (#1638) 2025-03-20 03:10:54 +08:00
yetone
1c8cac1958 feat: history manager (#1644) 2025-03-19 17:28:05 +08:00
yetone
8b730182cb refactor: ui lib (#1642) 2025-03-19 14:34:32 +08:00
yetone
55d5dfa8cd fix: ask api (#1641) 2025-03-19 14:14:57 +08:00
yetone
191d7b8783 feat: claude text editor tool (#1631) 2025-03-19 00:09:49 +08:00
yetone
6e77da83c1 fix: better sidebar (#1603)
* fix: better sidebar

* feat: better msg history

* fix: tests
2025-03-17 01:40:05 +08:00
yetone
4d983532a1 fix: more readable value name (#1521) 2025-03-07 20:27:11 +08:00
Peter Cardenas
afa674c6fd chore: prefer not to use function assignment (#1381) 2025-02-25 12:08:03 +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
48fc35f978 fix: hide internal properties of config (#1036) 2025-01-05 18:27:23 +08:00
Christopher Brewin
e612ad7566 feat(file_selector): command for switching the file picker provider. (#958) 2024-12-17 19:29:28 +08:00
Christopher Brewin
78dd9b0a6d feat(context): add a ui for selecting and adding files to the sidebar as context (#912)
* feat(sidebar): supports select files

chore (context) update add type annotations to context functions

chore (sidebar) remove unused notify function call

refactor (sidebar) remove setting search file to file path

chore (sidebar) remove nvim_notify debugging api call

* feat (files) allow selecting a file by string via cmp suggestion menu

* chore (context) refactor to allow context using @file with a context view

* refactor (context) refactor seletected file types as an array of path and content

* refactor (config) remove unused configuration options

* refactor (sidebar) remove unused unbild key

* refactor (context) remove unused imports

* refactor (mentions) update mentions to support items with callback functions and removal of the underlying selection.

* fix (sidebar) add file context as a window that is visitable via the tab key

* refactor (file_content) remove file content as an input to llm

* feat (sidebar) support suggesting and applying code in all languages that are in the context

* feat (sidebar) configurable mapping for removing a file from the context.

* feat (context_view) configure hints for the context view for adding and deleting a file.

* feat (context) add hints for the context view.

* fix (sidebar) type when scrolling the results buffer.

* refactor (selected files) refactor llm stream to accept an array of selected file metadata

* refactor: context => selected_files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-12 01:29:10 +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
22243bc316 feat: silence debug msg (#636) 2024-09-26 11:18:40 +08:00
Aaron Pham
26fe7b4a10 fix: vim-plug installation (#595)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-15 10:44:39 -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
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
Aaron Pham
158170f9ed fix(api): invalid types on defined class (#523)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-04 06:34:29 -04:00
yuchanns
f239733e61 chore(build): support download-windows-artifacts
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2024-09-04 13:21:51 +08:00
Aaron Pham
5fde5e03ea chore(build): streaming logs (#512)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-04 00:42:32 -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
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
e16111ba34 chore(types): update API to include suggestion (#469)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:29:08 -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
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