Repository navigation
Commit 65ac928
authored
Keep single-character and numeric pastes inline instead of converting… (#484)
Keep single-character and numeric pastes inline instead of converting them to pasted-text symbols
- in prompt field: single characters or numbers should not be converted to #PastedText symbols
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-open-prompt-pasted-text.ts
│ │ │ ├── handle-save-prompt-pasted-text.ts
│ │ │ └── index.ts
│ │ ├── prompt-view-provider.ts
│ │ └── utils
│ │ └── symbols
│ │ ├── pasted-text
│ │ │ └── replace-pasted-text-symbol.ts
│ │ └── replace-symbols.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── utils
│ └── simplify-prompt-symbols
│ ├── simplify-prompt-symbols.spec.ts
│ └── simplify-prompt-symbols.ts
└── ui
└── src
└── components
└── editor
└── common
└── prompts
├── PromptField
│ ├── PromptField.stories.tsx
│ ├── PromptField.tsx
│ └── hooks
│ └── use-handlers
│ ├── handle-input-change.ts
│ ├── handle-input-click.ts
│ ├── handle-paste.ts
│ ├── types.ts
│ ├── use-handlers.ts
│ └── utils.ts
└── shared
└── symbols
├── get-highlighted-text.tsx
├── position-mapping.ts
├── reconstruct-raw-value.ts
└── use-symbol-deletion.ts1 parent 2353f1e commit 65ac928
1 file changed
Lines changed: 7 additions & 2 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField/hooks/use-handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | | - | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
0 commit comments