Repository navigation
Commit a3d0f55
committed
Add commit message extraction and cleaning to commit symbol replacement
- should include commit message below the heading "# Commit [hash]". When encountered ascii tree in the commit message, remove it
- place remove_ascii_tree in `apps/editor/src/utils/ascii-tree/ascii-tree.ts`
- rename remove_ascii_tree to 'strip from text'
└── apps
└── editor
└── src
├── utils
│ ├── ascii-tree
│ │ └── ascii-tree.ts
│ └── git-repository-utils.ts
└── views
└── prompt
└── backend
└── utils
└── symbols
├── fragment
│ └── replace-fragment-symbol.ts
├── git
│ └── replace-git-symbols.ts
├── image
│ └── replace-image-symbol.ts
├── pasted-text
│ └── replace-pasted-text-symbol.ts
├── replace-symbols.ts
├── saved-context
│ └── replace-saved-context-symbol.ts
├── selection
│ └── replace-selection-symbol.ts
├── skill
│ └── replace-skill-symbol.ts
└── website
└── replace-website-symbol.ts1 parent 70d2286 commit a3d0f55
2 files changed
Lines changed: 50 additions & 3 deletions
File tree
- apps/editor/src
- utils/ascii-tree
- views/prompt/backend/utils/symbols/git
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
50 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
| |||
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
411 | | - | |
| 413 | + | |
| 414 | + | |
412 | 415 | | |
413 | 416 | | |
414 | 417 | | |
| |||
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
467 | 485 | | |
468 | 486 | | |
469 | 487 | | |
470 | 488 | | |
471 | | - | |
| 489 | + | |
| 490 | + | |
472 | 491 | | |
473 | 492 | | |
474 | 493 | | |
| |||
0 commit comments