Skip to content

Wire up file operations in ted#17

Merged
tig merged 3 commits into
developfrom
copilot/wire-up-file-operations
May 9, 2026
Merged

Wire up file operations in ted#17
tig merged 3 commits into
developfrom
copilot/wire-up-file-operations

Conversation

Copilot AI commented May 8, 2026

Copy link
Copy Markdown
Contributor

The ted demo exposed File menu entries for New/Open/Save/Save As, but the actions were placeholders. This wires those operations to the editor document and adds focused coverage for file I/O behavior.

  • File operations

    • Added NewFile, OpenFile, SaveFile, and SaveFileAs.
    • Tracks CurrentFilePath.
    • Uses Terminal.Gui open/save dialogs by default.
  • Testability

    • Added injectable dialog and file I/O delegates so tests can exercise behavior without interactive UI.
  • Status display

    • Updates the status bar filename from <untitled> to the current file name.
app.ShowOpenDialog = () => filePath;
Assert.True (app.OpenFile ());
Assert.Equal ("from disk", app.Editor.Document!.Text);

app.Editor.Document!.Text = "after";
Assert.True (app.SaveFile ());
Assert.Equal ("after", File.ReadAllText (filePath));

Copilot AI assigned Copilot and tig May 8, 2026
Copilot AI linked an issue May 8, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits May 8, 2026 23:27
Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/59b51b54-008f-4d5a-98b8-cd72769744df

Co-authored-by: tig <585482+tig@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/59b51b54-008f-4d5a-98b8-cd72769744df

Co-authored-by: tig <585482+tig@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement file operations in the ted editor with unit tests Wire up file operations in ted May 8, 2026
Copilot AI requested a review from tig May 8, 2026 23:34
Copilot finished work on behalf of tig May 8, 2026 23:34
@tig
tig marked this pull request as ready for review May 9, 2026 00:05
@tig
tig merged commit c2be5e1 into develop May 9, 2026
6 checks passed
@tig
tig deleted the copilot/wire-up-file-operations branch May 9, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wire up file operations in the ted editor

2 participants