Open a text file in the Dosya editor

Open supported text files of 2 MiB or less, distinguish the full-page plain-text/Markdown editor from the viewer overlay, and recognize loading failures.

Last reviewed

Text preview and text editing use the same readable-type detector, but Edit adds two gates: the file must be 2 MiB or smaller and cannot have a full file lock.

Theme-aware four-step map for choosing the intended text preview version, confirming edit eligibility, selecting Edit, and checking that CodeMirror loaded those bytes.
The map illustrates the viewer-overlay path, where the selected read-only preview version supplies the starting content. Plain text and Markdown now open a separate full-page editor with current content. Open full-size screenshot.

Recognized text. Dosya accepts common plain text, Markdown, JSON, YAML, CSV/TSV, XML, HTML/CSS, JavaScript/TypeScript, Python, SQL, shell, configuration, subtitle, and source-code extensions. It also recognizes text MIME types and extensionless names such as README, LICENSE, Dockerfile, Makefile, and .env.

Steps

  1. In Files, select the filename to open its viewer. .txt, .md, and .markdown use the full-page editor, which fetches current content regardless of the preview version. Other recognized readable text uses the overlay; select Latest, or deliberately select an older version if its bytes should be the starting point.
  2. Check that the viewer renders text rather than an unsupported-file card. Text preview refuses content over 2 MiB and reports that the file is too large to preview.
  3. Look for Edit in the viewer header. The control is absent for files over 2 MiB and for a file whose own lock mode is full_lock.
  4. Choose Edit. The full-page editor fetches current file details and revalidates the current raw content. The overlay fetches the raw bytes for the selected preview version, including historical content. Both initialize CodeMirror with line wrapping.
  5. Confirm the filename. The full-page editor has Save; Markdown also offers Split, Edit, and Preview layouts, with Edit and Preview on narrow screens. The overlay has Save version and loads syntax support for recognized languages.
  6. If loading fails, the full-page editor stays on an error screen with Try again. The overlay closes and reports Editor unavailable — Could not open the text editor. Check access and connectivity before retrying.

Encoding note. Preview recognizes UTF-16 little-endian and big-endian byte-order marks. The editor itself loads the response as text through the browser, so preserve a separate local copy before editing an encoding-sensitive file.

Expected result

The full-page editor opens current plain-text or Markdown content with Save. The overlay opens the selected preview version with Save version. A loading failure creates no version and is reported in the relevant editor’s error UI.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.