Commit 9215a24
committed
Add escape button for @ mentions in context menu
Implements a new escape option in the context menu that allows users to escape @ symbols by converting them to \@ when they want to prevent mention expansion.
Key changes:
- Add Escape option type to ContextMenuOptionType enum
- Implement escape functionality in insertMention() utility function
- Add escape option rendering in ContextMenu component
- Handle escape selection in ChatTextArea component
The escape option appears at the bottom of context menus when @ symbols are present and converts @ to \@ with proper cursor positioning.1 parent a29c488 commit 9215a24
File tree
3 files changed
+16
-0
lines changed- webview-ui/src
- components/chat
- utils
3 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
278 | 288 | | |
279 | 289 | | |
280 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
0 commit comments