Using Dotstar · Part 11

Files

In the desktop app, Files, beside Text above the text, searches every file in a folder with the pattern, as grep does, with the hits listed by file. Click a hit to open that file as the text, at the match.

Files: a TODO pattern with two named groups, searched through a project’s docs, notes and source, one hit a file, and the pattern drawn as a diagram beside.

Which files

Choose a folder (⌘O in Files, or File → Open Folder…, ⇧⌘O). The filter says which files to search: *.txt *.md only those, src/ only within that folder, and ! leaves things out, !*.csv, !old/. Empty means every file.

Binary and very large files are skipped, and so are dependency, version control and build folders (node_modules, .git and the like) unless you choose “Search them too”. Settings → Files holds the lists. Reload reads the folder again after files changed.

Replacing in files

With Replace on, each hit shows the match struck out and what replaces it. Replace in files… changes every matching file, after you confirm. It keeps a copy of each first, in a hidden .dotstar-backups folder in the folder you searched, so Undo replace can put them all back, as long as they haven’t changed since.

Collecting

Collect… gathers the matches from every file into one list, with the file name and line number in front if you like, as grep writes them: logs/a.log:12:4711. See Matches and groups.

Files is in Dotstar Pro, in the desktop app: a browser can only reach a folder by uploading it.