Find text inside a Dosya text file
Find a term inside the CodeMirror text editor, move among matches without invoking Files shortcuts, and leave the document unchanged until saved.
Last reviewed
Dosya’s browser editors use CodeMirror search. From Files, .txt, .md, and .markdown open the full-page editor; other recognized readable text opens the viewer overlay. Searching changes the selection and viewport only; it does not create a version.

Before searching. The editor’s Edit button appears only for a recognized text name or MIME type, a file no larger than 2 MiB, and a file that is not in full_lock mode.
Steps
- Open the text file in Files and choose Edit in the viewer header. Wait until the filename bar and editable document appear. The full-page editor loads current content; the overlay uses the version selected in the preview.
- Press Ctrl+F on Windows/Linux or Command+F on macOS. The full-page editor opens its own search bar even from Markdown Preview, bringing the source pane back into view. In the overlay, click inside the document first to give CodeMirror focus.
- Enter a distinctive word or phrase in the CodeMirror search panel. Use exact punctuation or case options only when the panel exposes and you need them.
- Move to the next or previous match with the panel controls or its displayed shortcuts. Watch the active selection in the document rather than relying on the browser page-search counter.
- If there are no matches, shorten the term and check whitespace, punctuation, and the loaded content. Selecting an older Versions row supplies historical bytes only to the overlay; the full-page editor fetches current content.
- Close the search panel when finished. Close the editor if you only inspected text. Save intentional changes with Save in the full-page editor or Save version in the overlay.
Do not confuse the two searches. Search files… searches file and folder names in the Files list. Ctrl/Command+F after the editor has focus searches the loaded document. The browser’s own page find may appear if focus is outside CodeMirror.
Expected result
The editor moves between occurrences of the search term while the file remains unchanged. No new version is created by searching. Saving uses Save in the full-page editor or Save version in the overlay.
Related guides
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.