Questions about Key Mapping, Model Name Display, and Autocompletion for CodeCompanion Command #285
-
Hello, While maximizing my usage of the plugin, I've run into a few questions.
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
hi,
|
Beta Was this translation helpful? Give feedback.
-
Regarding 1), that's because the command expects some input before it can run. I recommend in the workflow tips to apply an abbreviation such as For item 2), this is a little confusing as And great shout on 3). Thanks to @S1M0N38 as I hadn't realised you could do this with sub commands. |
Beta Was this translation helpful? Give feedback.
-
Thank you all for the responses! the plugin template and the guide for best practices look amazing and easy to follow. I'll give it a try and see if I can get the autocompletion for the subcommands working. @olimorris, are you talking about |
Beta Was this translation helpful? Give feedback.
-
@olimorris Thanks for the quick implementation—it works perfectly!
Sure, makes sense.
I'll give it a go and see what I can come up with. If it works, awesome! If not, at least I’ll have learned something new. Plus, I'm working on a module for yanking, so I’m thinking of adding completions for that as well. |
Beta Was this translation helpful? Give feedback.
-
I've added in sub commands as of |
Beta Was this translation helpful? Give feedback.
Regarding 1), that's because the command expects some input before it can run. I recommend in the workflow tips to apply an abbreviation such as
cc
as it's 3 keystrokes before you're typing a prompt. Alternatively, you could use the prompt library shortcut for the custom prompt.For item 2), this is a little confusing as
default_model
is poorly named. It can represent the default and the current model. The payload sent from theCodeCompanionChatAdapter
event will enable you to access this. Another user had a similar request recently which is how it came to be included in the plugin.And great shout on 3). Thanks to @S1M0N38 as I hadn't realised you could do this with sub commands.