Replies: 4 comments 14 replies
-
It's a very interesting feature. I've shied away from implementing a suggestions strategy for a couple of reasons. Firstly, I don't think I could improve upon If you think this could be accomplished differently, let me know because I do think this is hugely compelling as a feature. |
Beta Was this translation helpful? Give feedback.
-
Specific Responses to Your Comment (Thanks for responding btw)
Good point,
I think this can be addressed in the two following ways:
My Current Implementation StrategyTaking into account everything you laid out and my vision for this feature, I will formulate an implementation strategy below. I would like more feedback on this feature, especially stuff like the last comment. Implementation overview (will be written in a bit as I have to switch to my laptop to commute)I think the implementation is composed of four parts
ContextI think the best way to get the context efficiently will be the following:
local edits_history = {
{
["name"] = "file_name_1.lua"
["edits_line_num_history"] = {
33,
22,
33,
9,
102,
...
}
},
{
["name"] = "file_name_2.lua"
["edits_line_num_history"] = {
43,
24,
43,
111,
12,
...
}
},
...
}
PromptResponse parsing and prediction displayEvent/prediction trigger |
Beta Was this translation helpful? Give feedback.
-
Hi @olimorris, I've been working on the extension for a few days now, and so far, it's going alright. I've been able to create something that when a keybinding is pressed TRIES to predict your next cursor location and jump to it. I've still got a long way before this is usable though and there are a lot of improvements to be made. I've run into some problems that I haven't been able to figure out yet so if you have any tips it would be appreciated.
Additionally, after trying to debug all of these things for the last couple of days, I think it would be really helpful for people to have a library they can use to query all of the different kinds of AI API's. This will prevent the need to rewrite the same adapter logic over and over again for every plugin the wants to utilize these API's. Since Code Companion has the biggest adapter library, I think it might be worth for someone to try to take a look at the adapters implementation you got here and try to convert it to a single independent library for people to use. Lastly, I wanted to say thank you again for nudging me to make this plugin happen and I hope soon I'll be able to say that its at a usable state. |
Beta Was this translation helpful? Give feedback.
-
@olimorris I've been working on the plugin(bunnyhop.nvim) since we last talked and it is now at a point where I feel it can be of some use. Its still in a very alpha stage but you can start using it if you want. I have a lot of improvements (such as the context creation, tests, auto release, etc..) which I will continue making of course and if you have any other suggestions it would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
I would like to take a crack at creating a cursor position prediction feature kind off like what the cursor team is working on.
Would this fit the projects goals/direction @olimorris?
Beta Was this translation helpful? Give feedback.
All reactions