twinnydotdev / twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.
https://twinny.dev
MIT License
2.3k stars 126 forks source link

Feature Request: newline shortcut in the prompt bindable #260

Open crimsonduelist opened 3 weeks ago

crimsonduelist commented 3 weeks ago

Is your feature request related to a problem? Please describe. I m used to for example: write smthing ->SHIFT+ENTER -> paste some code or something ->SHIFT+ENTER -> write smthing else etc I ve searched through issues and discussions as well as twinny s current settings and bindings i dont see anything for this It s been getting annoying especially when if i just do smthing like write smthing (WITHOUT NEW LINE) paste code or smthing (WITHOUT NEW LINE) paste smthing else some of the text will be bold for example in places. I assume it s somehow messing with the formatting anyway. I m not sure if it actually messes somehow with what s sent how it s viewed

Describe the solution you'd like a binding/keyboard shortcut to be able to enter/newline without sending the content of twinny s message box.

Describe alternatives you've considered I ve just been going without newlining or quickly opening a new file writing everything there as i want it then quick copy paste and enter in twinny s message box...

Additional context Add any other context or screenshots about the feature request here.

rjmacarthy commented 1 week ago

You should press CTRL+Enter to skip to the next line.

crimsonduelist commented 1 week ago

You should press CTRL+Enter to skip to the next line.

is there a command that this binds to cuz i dont see anything looking at shortcuts

rjmacarthy commented 6 days ago

You should press CTRL+Enter to skip to the next line.

is there a command that this binds to cuz i dont see anything looking at shortcuts

It's hard-coded unfortunately.

crimsonduelist commented 6 days ago

You should press CTRL+Enter to skip to the next line.

is there a command that this binds to cuz i dont see anything looking at shortcuts

It's hard-coded unfortunately.

it s ok i can live with that. Any chance u d make this bindable from vscode? I can close this or change to feature request i guess

rjmacarthy commented 6 days ago

Sure, or a pull request works too. Many thanks.