Repository navigation
Replies: 1 comment
|
Resolved by #12160 — Enter now continues numbered/bullet/task Markdown list markers in the composer (and exits on an empty item), in both plain and rich modes. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Area
apps/web, including the desktop app that wraps the web clientProblem or use case
The message composer accepts Markdown as plain text, but starting a numbered list means typing every marker by hand. After writing
1. First item, inserting a newline leaves an empty line instead of continuing with2..This is a small but frequent interruption when a prompt contains a sequence of requirements or review notes.
Proposed solution
Continue decimal Markdown list markers when the user inserts a newline:
1. First itembecomes1. First item\n2..1.On desktop this applies to
Shift+Enter, since plainEntersends the message. It also applies wherever the web composer already treatsEnteras a newline. Native mobile has a separate composer and is outside the smallest first pass.Why this matters
Numbered requirements are common in coding prompts. Continuing the marker matches the behavior of familiar Markdown editors while keeping the stored prompt as ordinary Markdown text.
Smallest useful scope
Support decimal markers in the shared web/desktop composer. Add focused tests for incrementing, preserving indentation, exiting an empty item, and leaving ordinary lines unchanged.
Alternatives considered
A full rich-text or Markdown-shortcut plugin would add far more behavior and state than this interaction needs. Supporting bullets, checkboxes, alternate ordered-list delimiters, and automatic renumbering can remain separate ideas.
Risks or tradeoffs
A line beginning with a number and period may not be intended as a list. Requiring whitespace after the period and triggering only when the user explicitly inserts a newline keeps accidental activation narrow. The empty-item behavior gives the user an immediate way out.
Contribution
All reactions