Skip to content

[UX issue] File edit auto-complete shouldn't interfere with typing and instead use a shortcut like shift+enter #28114

Closed
@ell1e

Description

@ell1e

Description

The file edit auto-complete shouldn't interfere with typing and use a shortcut like shift+enter. Auto-completing on enter is a fundamentally disruptive and kind of destructive default, because I may simply want to enter a new line. This is even worse with more free form files like markdown files, where Gitea currently seems to have an autocomplete active, where the suggestions are going to be generally very unhelpful, very random, and I'm way more likely to want to enter a new line than pick any of the auto-complete suggestions.

To make it more discoverable, simply add the shortcut to the popup after changing it to something more sane like shift+enter, like this:

Screenshot from 2023-11-18 17-21-18

Screenshots

Pressing enter here should enter a new line, not write "This" twice:
Screenshot from 2023-11-18 17-21-17

Gitea Version

1.22.0+dev-334-ge88377470

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Linux

Browser Version

Firefox 120.0b9

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions