add completeWithLLM
I add a custom plugin, named completeWIthLLM. I add the completeWithLLM.js in plugin/custom/plugins and add configuration in plugin/global/settings/custom_plugin.user.toml.
@freezed-corpse-143
Hi, thanks for your PR!
It's getting late, I'll look into how different software handles LLM autocompletion tomorrow or the day after. I want to see which interaction style is the most user-friendly.
@obgnail,I want to add a hotkey for getting the cursor to the end of line. Would you have some ideas?
@freezed-corpse-143
My apologies. I find the implementation of submitting a token after text selection a little strange. But I haven't had a chance to research the interaction design of other product Copilots these past few days.
However, I can answer your current question.
const hotkey = "ctrl+shift+j"
const jumpToLineEnd = () => File.editor.selection.jumpToLineEnd()
this.utils.hotkeyHub.registerSingle(hotkey, jumpToLineEnd)
Try entering the following code in the devtools console. After that, you should be able to test the 'ctrl+shift+j' shortcut in the main content area.
__plugin_utils__.hotkeyHub.registerSingle("ctrl+shift+j", () => File.editor.selection.jumpToLineEnd())
Thank you!