Skip to content

v0.3.24

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:38
· 22 commits to main since this release

Highlights

Edit text files in the preview. A text file open in the preview panel (Markdown, JSON, source code, and HTML or SVG, whose source it opens; up to 1 MB) now has an Edit button in the toolbar. It turns the tab into a plain text editor:

  • Save with the button or Ctrl+S (⌘S on a Mac). The file is written in place: its permissions and line ends (LF or CRLF) are kept, and the editor stays open. Done goes back to the preview, showing what you saved.
  • Keys: Tab and Shift+Tab indent and outdent, using the file's own indentation (a tab or its spaces). Enter keeps the line's indentation, and Ctrl+Z undoes. Esc no longer stops the agent's turn while you type.
  • Changed on disk: if the agent edited the file after you opened it, Save tells you instead of overwriting, and offers Overwrite or Load the disk version.
  • Unsaved changes: switching tabs or sessions, hiding the panel, Done, and closing the page all ask first.
  • Memory: no editor library is added, and the text is held only while the editor is open.

Changelog

  • 5307dbf feat: edit text files in the preview