18 Commits

Author SHA1 Message Date
yetone
487972386e feat: support acp slash commands (#2775) 2025-10-16 19:05:57 +08:00
Peter Cardenas
250b7a26b4 fix: filter out completions to relevant completion source (#2769) 2025-10-15 18:43:25 +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
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
aniaan
aae4cc4014 refactor(cmp): Extract get_chat_mentions for third-party cmp source usage (#2027) 2025-05-12 20:19:42 +08:00
guanghechen
aeb845c6e9 fix(blink.cmp): crash on run slash commands (#1829)
* fix(blink.cmp): crash on run slash commands

* tweak timeout
2025-04-08 19:46:46 +08:00
yetone
d76a158b61 feat: custom slash commands (#1826) 2025-04-07 22:19:59 +08:00
Peter Cardenas
afa674c6fd chore: prefer not to use function assignment (#1381) 2025-02-25 12:08:03 +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
yetone
9d0e1cd4af fix: align lua oop (#889) 2024-11-23 20:23:05 +08:00
yetone
c551bbe5b6 fix: cmp slash commands disappeared (#869) 2024-11-19 06:01:50 +08:00
yetone
8e1018fef7 feat: repo map (#496)
* feat: repo map

* chore: remove breakline

* chore: remove spaces

* fix: golang public method

* feat: mentions for editing input
2024-09-23 18:52:26 +08: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
2e916b4747 chore(cmp): update slash commands sources (#206)
and more functional

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 01:59:22 -04:00
Aaron Pham
f99bf767b5 fix(highlight): allow override (#201)
update envvar parsing from cmdline

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 20:15:45 -04:00
yetone
dbf2509d44 fix: cannot use function as cmp kind (#184) 2024-08-24 04:35:33 +08:00
yetone
3dbdba198a feat: commands with cmp (#183) 2024-08-24 04:32:44 +08:00