Folia's text editor

Edit a text file in a pane beside its folder, with colours, find and replace, a Markdown preview, CSV files as a table, and Markdown converted to PDF.

Website and App Store versions Since Folia Files 1.4

The Mac App Store edition is coming soon. The website edition has everything. Compare the editions

On this page

Folia Files has its own text editor for quick changes: a configuration file, a README, a CSV, a script. It opens in a pane beside the folder, so you keep your files in view.

Open a file in the editor

  1. Select one text file.
  2. Choose File › Open in Folia's Editor (⌘E), or right-click it and choose Open in Folia's Editor.

The editor takes a pane beside the folder pane. It opens text files of up to 10 MB: code, Markdown, CSV, logs, configuration files, files without an extension such as README or .zshrc. It doesn't offer to open a PDF, a picture or a Word document.

Open some files there with a double-click

In Settings › Files and Network › Editor, list extensions separated by commas (for example md, txt, csv). Files with these extensions then open in Folia's editor with a double-click or ↩. Empty (the default), they open in their app, as before.

Edit and save

  • The text is coloured by language (Swift, Python, JavaScript, TypeScript, JSON, HTML and XML, CSS, shell, YAML, TOML and INI, C, Go, Rust, Java, PHP, Ruby, SQL, Markdown, CSV), with line numbers.
  • Edited shows in the pane's header until you save with File › Save (⌘S). The file is written in one step, with its encoding and line endings kept.
  • ⌘Z undoes your typing in the editor only; it never undoes a file operation of the window.
  • ⌘F opens the editor's find bar. The gear of the editor's pane also has Search…, Find and Replace…, Wrap Lines, Show in Pane, Open with Default App, Reload from Disk, and shows the file's encoding and line endings. Wrap Lines is also in Settings › Files and Network › Editor (Wrap lines in the editor).
  • The editor counts words and characters (those of the selection too).

If another app changes the file while it is open, the editor reloads it; if you have unsaved changes, it asks first (Keep My Changes or Reload). Closing the pane, the tab, the window or Folia Files with unsaved changes asks whether to Save.

Markdown: text and preview

A Markdown file has a Text / Preview switch in the pane's header. Preview shows the document laid out. Export as PDF… in the editor's gear saves that page as a PDF (a dialog asks where; a PDF you choose to replace goes to the Trash, never deleted).

To make PDFs from Markdown files without opening them, select one or more .md files and choose Convert to PDF in the context menu (or File › More Actions › Convert to PDF). Each PDF is written beside its Markdown file, under a free name: never over an existing file. It is one operation: ⌘Z sends the PDFs to the Trash.

CSV and other text in columns: the table

A CSV or TSV file has a Text / Table switch in the pane's header. For a .txt, .dat or .prn file in columns, choose Open as Table (context menu, File › Open as Table, or the editor's gear).

In the table:

  • double-click a cell to edit it; the buttons above the table Add a Row, Delete the Selected Rows, Add a Column and Delete the Column; click a column's title to sort the rows;
  • the Filter field shows only the matching rows;
  • the Headers box (first row as headers) and the column separator menu (Comma, Semicolon, Tab, Vertical Bar) say how the file is read.

The table shows the first 100 columns of a very wide file; nothing beyond them is lost when you save. Back to Text returns to the text.

Files on servers and in archives

A file on a server you connected to with Folia Files is edited from a working copy and sent back to the server at each save. A file inside a ZIP or TAR archive opened as a folder is put back into the archive at each save (website edition, see Change a ZIP or TAR archive). In an archive Folia Files can't rewrite, the editor is Read-Only.