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
- Type multiple lines of text in the prompt input
- On any line other than the first, type
/ followed by characters
- 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.
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
/followed by charactersExpected 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 fullrawTextinstead of just the text up to the cursor position.