You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds new URL context that allows including content of URLs in chat context
using lynx text browser. This enables users to reference external content
in their chat prompts.
Also improves documentation around optional dependencies and fixes curl
utility functions to work with optional parameters.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,15 @@ Verify "[Copilot chat in the IDE](https://github.com/settings/copilot)" is enabl
46
46
47
47
Optional:
48
48
49
-
- tiktoken_core: `sudo luarocks install --lua-version 5.1 tiktoken_core`. Alternatively, download a pre-built binary from [lua-tiktoken releases](https://github.com/gptlang/lua-tiktoken/releases)
50
-
- You can check your Lua PATH in Neovim by doing `:lua print(package.cpath)`. Save the binary as `tiktoken_core.so` in any of the given paths.
51
-
52
-
> For Arch Linux user, you can install [`luajit-tiktoken-bin`](https://aur.archlinux.org/packages/luajit-tiktoken-bin) or [`lua51-tiktoken-bin`](https://aur.archlinux.org/packages/lua51-tiktoken-bin) from aur!
- Install via luarocks: `sudo luarocks install --lua-version 5.1 tiktoken_core`
52
+
- Alternatively, download a pre-built binary from [lua-tiktoken releases](https://github.com/gptlang/lua-tiktoken/releases). You can check your Lua PATH in Neovim by doing `:lua print(package.cpath)`. Save the binary as `tiktoken_core.so` in any of the given paths.
53
+
- For Arch Linux users, you can install [`luajit-tiktoken-bin`](https://aur.archlinux.org/packages/luajit-tiktoken-bin) or [`lua51-tiktoken-bin`](https://aur.archlinux.org/packages/lua51-tiktoken-bin) from aur
54
+
-[lynx](https://lynx.invisible-island.net/)
55
+
- Used for fetching textual representation of URLs for `url` context
56
+
- For Arch Linux users, you can install [`lynx`](https://archlinux.org/packages/extra/x86_64/lynx) from the official repositories
57
+
- For other systems, use your package manager to install `lynx`. For windows use the installer provided from lynx site
53
58
54
59
> [!WARNING]
55
60
> If you are on neovim < 0.11.0, you also might want to add `noinsert` and `popup` to your `completeopt` to make the chat completion behave well.
@@ -277,6 +282,7 @@ Default contexts are:
277
282
-`files` - Includes all non-hidden files in the current workspace in chat context. By default includes only filenames, includes also content with `full` input. Including all content can be slow on big workspaces so use with care. Supports input.
278
283
-`git` - Includes current git diff in chat context (default unstaged). Supports input.
279
284
-`register` - Includes content of specified register in chat context (default `+`, e.g system clipboard). Supports input.
285
+
-`url` - Includes content of provided URL in chat context. Requires `lynx` (see requirements). Supports input.
280
286
281
287
You can define custom contexts like this:
282
288
@@ -495,6 +501,9 @@ Also see [here](/lua/CopilotChat/config.lua):
0 commit comments