New in v8.0.0 - ✨ Slash Commands from Prompt Library and better key mapping #304
olimorris
announced in
Announcements
Replies: 1 comment
-
I also expect there to be some improvement to startup time as we're no longer setting up any keymaps by default. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hopefully this release dramatically improves the usability of the plugin.
Firstly, you can now mark specific prompts (from the prompt library) as slash commands. These will then appear in the completion menu in the chat buffer. This is accomplished via the
opts.is_slash_cmd
value and can be seen in the commit prompt:Secondly, the default keymaps that came with each prompt in the prompt library have been removed. There was some fair criticism recently that it was a frustrating inclusion to have as a default and also cumbersome to modify. Now, you can do
require("codecompanion").prompt("commit")
to call the commit prompt for example. The value of the prompt argument is theopts.short_name
value from the prompt library. This allows for:Sub-Commands
If you run
:CodeCompanion
or:CodeCompanionChat
you'll now also see the sub-commands appear in the cmdline.Beta Was this translation helpful? Give feedback.
All reactions