Skip to content

Text and code preview

Text preview shows a plain-text file in the preview area, colored by format, with line numbers down the left. This page covers which files it recognizes, how to select and search inside the preview, and the load limit for large files.

The text preview is for a quick read, not for editing — you cannot change a file from the preview area.

Which files it recognizes

tessoa decides whether a file is text by its extension, and the range is wide:

CategoryExamples
Plain text and documents.txt, .md, .log, .csv, .tsv, .srt
Config and data.json, .jsonc, .toml, .yaml, .ini, .xml, .env, .properties
Web and styles.html, .css, .scss, .js, .ts, .jsx, .tsx, .vue, .svg
Source code.rs, .py, .c, .cpp, .java, .go, .rb, .php, .swift, .kt, .lua, .sql, and a hundred more
Shell scripts.sh, .bash, .zsh, .ps1, .bat, .cmd
Whole-name matchesMakefile, Dockerfile, LICENSE and other common extensionless files
A JSON file previewed in tessoa with line numbers on the left and separate colors for keys, strings, numbers, and booleansA JSON file previewed in tessoa with line numbers on the left and separate colors for keys, strings, numbers, and booleans
JSON keys, strings, numbers, true / false, and null each get their own color, so the nesting reads at a glance.

Coloring rules

The coloring follows the format automatically, with nothing to pick: JSON, XML, TOML, INI, YAML, Markdown, CSV / TSV, logs, and diffs each have their own rules. CSV and TSV cycle colors per column and underline the header row.

Working inside the preview

ActionHow
Scroll sidewaysHold Shift and scroll the wheel; a trackpad can swipe sideways directly
Select textDrag to select, double-click for a word, triple-click for a line, click the gutter for a whole line
Extend from an anchorClick to drop an anchor, then Shift-click
CopyCtrl+C
Select allRight-click → Select All
FindCtrl+F

Finding within the preview: press Ctrl+F for the find bar. The three small buttons on it are Match case, Match whole word, and Use regular expression. A bad expression shows Invalid where the count would be, and no hits shows No results. Press Enter or F3 for the next match, Shift+Enter for the previous one, and Esc to close the bar.

Clicking the preview first hands it the focus; Ctrl+F then puts the find bar in the top-right corner of the preview, highlighting as you type and counting which match you are on.
Tip

Which find box Ctrl+F opens depends on where the focus is: on the file list it opens the filter box in the footer, and on the preview contents it opens the in-preview find. Click once on the text in the preview to hand focus over.

The load limit for large files

For very large files tessoa only reads the beginning, and a line reading — Preview load limit reached — marks where it stopped. Hover it to see how much was read. Find, select all, and copy only cover the part that was loaded.

The limit is 64 MB or one million lines, whichever comes first. Files under it are read as you scroll rather than slurped whole, which is why opening a several-hundred-megabyte log does not stall tessoa.

User docs for tessoa