Skip to content

core : add :Llama subcommand interface#110

Open
danbev wants to merge 2 commits intoggml-org:masterfrom
danbev:subcommands
Open

core : add :Llama subcommand interface#110
danbev wants to merge 2 commits intoggml-org:masterfrom
danbev:subcommands

Conversation

@danbev
Copy link
Member

@danbev danbev commented Jan 29, 2026

This commit add a suggestion to introduce a Llama subcommand interface.
This is very much a personal preference and is similar to how the Copilot plugin works.

Example usage:

:Llama <tab>

It is possible to start typing and get completions for the subcommands that begin with the typed prefix.

This commit add a suggestion to introduce a Llama subcommand interface
This is very much a personal preference and is similar to how the
Copilot plugin works.

Example usage:
```console
:Llama <tab>
```
It is possible to start typing and get completions for the subcommands
that begin with the typed prefix.
@pnb
Copy link
Contributor

pnb commented Feb 1, 2026

Isn't this already covered by vim, at least with set nocompatible? For instance, when I type ":Ll" and press tab, I get:
Screenshot From 2026-02-01 12-57-43

Quite possible I don't get exactly what this is supposed to do.

To clarify the intent that the usage of subcommands is intented to
replace the existing multiple top level commands this commit removes the
top level ones.
@danbev
Copy link
Member Author

danbev commented Feb 2, 2026

Isn't this already covered by vim, at least with set nocompatible?

The idea here is to replace those "top-level" commands with a single Llama command with subcommands. I left the existing commands as I wanted to ask what others thought first but that was probably a mistake and I've added a commit which removes them now. Sorry for the confusion.

@pnb
Copy link
Contributor

pnb commented Feb 2, 2026

Thanks for explaining! That does make sense. TBH I don't really have a preference either way, now that I understand.

Is the advantage that perhaps this is more scalable in the future, if there are lots more commands? E.g., right now I can do "Ll[tab]" and cycle through all commands easily, but if there were 15 commands that would be pretty annoying and I might want to narrow down the specific command without typing "LlamaDi[tab]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants