mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
fix(tui): expand paste markers when opening external editor (#444)
* fix(tui): expand paste markers when opening external editor Add getExpandedText() method to Editor that substitutes paste markers with actual content. Use it in Ctrl-G external editor flow so users see full pasted content instead of [paste #N ...] placeholders. * docs: add changelog entries for #444
This commit is contained in:
parent
6ddfd1be13
commit
0d477d39f9
4 changed files with 20 additions and 1 deletions
|
|
@ -1627,7 +1627,7 @@ export class InteractiveMode {
|
|||
return;
|
||||
}
|
||||
|
||||
const currentText = this.editor.getText();
|
||||
const currentText = this.editor.getExpandedText();
|
||||
const tmpFile = path.join(os.tmpdir(), `pi-editor-${Date.now()}.pi.md`);
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue