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.93k stars 154 forks source link

Different shortcuts for single-line or multi-line suggestions #201

Open KizzyCode opened 6 months ago

KizzyCode commented 6 months ago

Is your feature request related to a problem? Please describe. Usually I only want a single-line-suggestion (in most contexts it works better); but then sometimes I want a multiline suggestion (I have developed a gut-feeling for where it works and then it's really useful).

Describe the solution you'd like Allow different shortcuts for different types of suggestions (e.g. single line for the normal-inline-suggestion shortcut), medium amount of lines (configurable) for custom shortcut b, large amount of lines for custom shortcut c.

Describe alternatives you've considered None to be honest since the problem is that the multiline-suggestions are unreliable, so an automatism is most-likely also unreliable. Mode-switching via shortcut could be a possibility; but this requires the user to keep track of the current state in their mind which seems less comfortable.

rjmacarthy commented 6 months ago

Hey, do you have any suggestions for the shortcuts?

KizzyCode commented 6 months ago

I think thats very opinionated; and it might be reasonable to not add a default shortcut (if someone wants to enable this feature, they have to provide a shortcut themselves)?

However, speaking only for myself: I use " /" for normal inline completion, so " / chord to /" would feel natural (i.e. press "option + /" and then press "/" again).

IIRC, the default is " \", so maybe " \ chord to \"?