Skip to content

Slash command picker doesn't work on multiline input #35520

Description

@0xSkybreaker

Problem

The slash command picker (/) only triggers on the first line of multiline input. When typing on any line other than the first, the picker does not appear.

Steps to reproduce

  1. Type multiple lines of text in the prompt input
  2. On any line other than the first, type / followed by characters
  3. The slash command picker does not show up

Expected behavior

The slash command picker should appear when / is typed at the beginning of any line, just like @ mention picker works on any line.

Cause

The regex /^\/(\S*)$/ matches against the full rawText instead of just the text up to the cursor position.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions