Skip to content

Editing text files

marcelo edited this page Aug 15, 2026 · 1 revision

Editing text files

X-Files has a built-in text editor — you can read and edit text files on the couch with just the gamepad.

Opening a file

  1. Browse to a text file (.txt, .md, .log, code files, and many more).
  2. Press Y → Edit (or the edit action shown in the preview).

The editor opens fullscreen.

Editing

  1. Press A (or the button shown) to enter input mode — this opens the on-screen keyboard.
  2. Type with the keyboard. The console keyboard works with the gamepad natively.
  3. When you're done typing, close the keyboard to go back to navigating the document.

Navigating the document

Button What it does
D-pad up / down Move the cursor line by line
D-pad left / right Move the cursor by character
A Enter input mode (keyboard)
B Exit input mode / back to file list
Start Save the file

Saving

Press Start → Save. If you made changes and try to leave without saving, X-Files asks you to confirm — you won't lose your work by accident.

Files that are too big

X-Files handles text files in three tiers depending on size:

  • Small / medium files — full editing with syntax highlighting.
  • Large files — editing still works, highlighting is turned off to stay fast.
  • Very large files — read-only; open in the preview instead.

Encodings

X-Files detects the file's encoding automatically (UTF-8, UTF-16, and common Windows encodings) and preserves it when you save. Files with a BOM keep their BOM, and line endings are kept as they were.

Saving a new file

Create a new empty file from the file browser context menu (Y → New File), then open it and start typing.

Clone this wiki locally