Find text in a desktop file preview

Search a desktop plain-text preview case-insensitively, move through wrapping matches, and understand its 2 MiB preview limit and 300 Ki-character syntax-coloring threshold.

Last reviewed

Find searches only the rendered contents of the desktop plain-text viewer. It compares text without case sensitivity, highlights non-overlapping matches and never changes the cloud file.

Text preview Find bar with query field, current match counter, previous and next controls.
Find highlights case-insensitive matches in rendered text and wraps previous or next navigation. Open full-size screenshot.

Before you start

Open a plain-text or code file at most 2 MiB, such as TXT, JSON, XML, logs, YAML, TOML, INI, common source-code extensions, HTML or CSS. Syntax coloring is applied only when the rendered text is at most 300 × 1024 UTF-16 code units; larger previewable text remains searchable without syntax coloring. Markdown opens in its own rendered/source viewer, while CSV opens through Office Preview, so neither surface provides this in-file Find bar.

Steps

  1. With the preview open, choose Edit > Find…, or press Ctrl+F on Windows/Linux or Command+F on macOS.
  2. Type into the field labeled Find in file. The counter changes to current/total; a query without a match reports No results.
  3. Press Enter or select Next to advance. Use Shift+Enter or Previous to move backward. Navigation wraps after the final or first occurrence.
  4. Press Esc to close Find and clear its highlights.
Dosya desktop file list used to open a supported text file within the 2 MiB preview ceiling.
Find is enabled only after this file opens successfully as a rendered text preview. Open full-size screenshot.

The match operation runs in the displayed document and does not send the query as a file edit. Leaving the viewer also removes the temporary ranges.

Expected result

Every visible occurrence matching the entered letters is highlighted, and the active result advances in document order with wraparound.

Troubleshooting

If Find… is unavailable, the current file may be in Markdown, Office Preview or another specialized viewer rather than the plain-text viewer. A text file above 2 MiB receives a download fallback instead of searchable content.

“This file is not text-previewable.” means binary data was detected in the first 8,192 characters. “Failed to load file content.” indicates the raw text request failed; confirm access and connectivity, then reopen the file.

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.