Repository navigation
Commit 4ca632c
committed
Refactor symbol replacement spacing and trimming logic for fragments and pasted text
- do we call trim() on text between then replaced symbols? we should
├── apps
│ └── editor
│ └── src
│ ├── utils
│ │ └── prompt-builder.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-copy-prompt.ts
│ │ │ ├── handle-preview-prompt.ts
│ │ │ ├── handle-save-prompt-pasted-text.ts
│ │ │ └── utils
│ │ │ ├── build-cli-prompt.ts
│ │ │ └── build-prompt-payload.ts
│ │ ├── prompt-view-provider.ts
│ │ └── utils
│ │ ├── persistent-text-storage.ts
│ │ └── symbols
│ │ ├── fragment
│ │ │ └── replace-fragment-symbol.ts
│ │ ├── pasted-text
│ │ │ └── replace-pasted-text-symbol.ts
│ │ └── replace-symbols.ts
│ ├── frontend
│ │ └── hooks
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
└── hooks
└── use-handlers
└── handle-paste.ts1 parent e338de8 commit 4ca632c
2 files changed
Lines changed: 31 additions & 8 deletions
File tree
- apps/editor/src/views/prompt/backend/utils/symbols
- fragment
- pasted-text
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 | | |
80 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
81 | 93 | | |
82 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
83 | 97 | | |
84 | 98 | | |
85 | | - | |
| 99 | + | |
86 | 100 | | |
87 | 101 | | |
88 | 102 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | | - | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | | - | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
56 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| |||
0 commit comments