twinny icon indicating copy to clipboard operation
twinny copied to clipboard

Different shortcuts for single-line or multi-line suggestions

Open KizzyCode opened this issue 10 months ago • 2 comments

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.

KizzyCode avatar Apr 06 '24 18:04 KizzyCode

Hey, do you have any suggestions for the shortcuts?

rjmacarthy avatar Apr 07 '24 10:04 rjmacarthy

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 \"?

KizzyCode avatar Apr 07 '24 16:04 KizzyCode