Working with the Vault
The vault keeps your Markdown, text, and supported code files in a folder tree inside the current browser.
Table of Contents
Organize Files and Folders
Use the Vault panel to create files and folders, open documents, and drag editable items into a new location. Right-click an item to rename, duplicate, move, export, download, inspect Properties, add a favorite, or move content to Trash.
Open Add (+ ▾) beside the MDash logo or in the Vault panel's All view for New File, New Folder, Import File, Import Folder, and Import from URL. All keeps Organizer, Add, Vault Options (⋯), and the name filter together. Favorites and Recent offer Quick Open, with Organizer in Vault Options. Trash keeps Organizer beside Vault Options.
To import into a specific writable folder, right-click it or open More (⋯) on the folder row and choose Import Here. The submenu offers Import File, Import Folder, and Import from URL. New File and New Folder remain separate actions in that menu.
In All, Expand All Folders and Collapse All Folders are available through Vault Options when no filter is active. Deliberate folder expansion is remembered across visits and shared with Organizer. Filtering and automatic location reveal do not overwrite those choices. Destination pickers keep independent expansion and initially reveal the selected location's ancestors. The bundled MDash folder stays expanded until you collapse it.
Each Vault view retains its own filter and scroll position. The header count describes the selected view. In Trash, Restore All and Empty Trash are available through Vault Options.
Choose Sort Items By in All's Vault Options or in the Organizer folder tree's Vault menu to sort by name, modified time, or type. Direction labels adapt to the selected field, such as A to Z or Newest First. Folders remain grouped before files. The protected /MDash folder stays above personal content in its fixed guide order. Organizer's contents table has separate sort controls.
Properties shows a file's vault location, type, detected language, size, activity, status, and content counts. Folder Properties shows direct and recursive item totals, total size, and the latest descendant modification. Choose Analyze Links for a separate report with Internal, Backlinks, and External, plus an Unresolved filter for internal links. The same action supports files, folders and their subfolders, and the entire vault through Vault Options. Backlinks calculate in the background for files and folders; the tab is disabled for the entire vault. Outgoing analysis scans Markdown files only. External website availability is never checked.
Imported files use vault dates: Created is when the copy was added, and Modified is its latest change in MDash. See File Dates for replacement and backup behavior.
The imported ArCaptcha project shown in the Vault Organizer guide contains a Markdown README, a plain-text license, and two PHP files.
ArCaptcha/
├── ArCaptcha.php
├── GetArCaptcha.php
├── LICENSE
└── README.md
Open README.md to read the rendered documentation. MDash opens the PHP files as highlighted source. To bring in the same project, follow Import from a URL.
Keep related documents together. Use explicit paths when files in different folders share a name. See Name Files and Folders for naming rules and supported special filenames.
Use Vault Organizer
Choose Organizer in the Vault panel or its Vault Options menu, press Ctrl/⌘ + Alt + Shift + V, or find Vault Organizer in the command palette. Opening it from Trash starts in Trash.
Organizer brings the folder tree, file list, selection tools, and Source Preview into one larger workspace. Use it to move or copy a batch, review duplicate names, export a selection, or restore deleted folders. Its filters search across the live vault while the breadcrumbs retain the current destination for Paste and new items.
The Vault Organizer guide walks through selection, safe reorganization, conflict decisions, keyboard navigation, and Trash recovery.
Work with Tabs
Opening a file places it in a tab. Closing the tab does not delete the file.
Use Tab Options (⋯) on a tab to mark a favorite, close, duplicate, copy, move, rename, export, change document direction, or select a slide theme. Read-only bundled tabs provide Copy To without editing or moving actions. Use the tab menu or command palette to reopen the most recently closed tab.
Switching between Editor, Split, Stacked, and Preview preserves your reading position in the document. Newly shown panes follow the current source location, and panes that remain visible retain their own position.
Under Settings → View, use Default View for New Tabs for editable files without a remembered view. Last Used follows the last view you selected for an editable file. If that setting resolves to Preview, a file opened immediately after creation opens in Split, or Stacked on narrow screens, so you can start typing. This applies to New File and to Create File when you follow a missing link. The bundled README and guides open in Preview.
When tabs exceed the available width, scroll the tab strip or use its fading navigation controls. Choose Open Tabs (▾ beside the tab strip’s +), or press Ctrl/⌘ + Alt + P, to search every open tab by filename or path.
Each Open Tabs row has a Close Tab button (×). Closing a tab there keeps the list, filter, and scroll position available for closing more tabs. Choosing its filename opens the file and closes the list. Empty Untitled drafts retain their Keep in Vault or Move to Trash prompt.
The browser owns Ctrl/⌘ + W, so close an MDash tab from its menu or the command palette.
Use All, Favorites, Recent, and Trash
- All shows the complete live folder tree.
- Favorites collects files you marked for quick access.
- Recent lists the 30 files opened most recently.
- Trash holds recoverable files and folders until permanent deletion.
Recent's Vault Options menu includes Clear Recent, which asks for confirmation before clearing the list. Files, favorites, and open tabs are kept.
Moving a folder to Trash includes its descendants and removes affected files from open tabs, Favorites, Recent, Search, wiki-link results, and backlinks. Use the immediate Undo action or choose Restore in Trash. Restored items return to their original writable folders when available; unavailable locations and name conflicts are reviewed before restoring.
Trash folders are deleted entries rather than expandable branches. Open Properties for their contents and original location. Restore All in the sidebar's Vault Options or Organizer's Trash Options restores the entire Trash, including entries hidden by a filter. Restore Selected in Organizer affects only the selected entries.
Restoring Nested Items and Missing Locations
If a child was deleted before its parent, restoring both together returns the child inside the restored parent, including after a numbered-name or merge decision. Restoring the child alone while its parent remains deleted asks for another location. Skipping a restored parent also leaves dependent selected children in Trash, with the skipped result reported explicitly.
Choose a Restore Location lists entries whose original locations are unavailable. Its Restore Location folder picker selects one writable destination for all listed entries. Other selected entries return to their original locations. Restored folders retain their contents and hierarchy. Name conflicts then use the shared conflict review, with Keep Both selected by default. Canceling before execution keeps the batch unchanged.
Delete Permanently and Empty Trash cannot be undone. A full backup includes Trash, while a ZIP export does not.
Search and Navigate
- Use Quick Open to find a file by name or path.
- Use Search All Files to find text across live vault files.
- Use Outline to navigate headings in the active Markdown document.
- Use the Links panel to inspect internal links, backlinks, and external links for the active document. Filter unresolved internal links or choose Analyze Links for the detailed report.
- Use Vault Organizer filters when you are managing a folder or a group of files.
Trash stays outside normal Search, wiki-link resolution, backlinks, and live file counts. See Keyboard Shortcuts for navigation, search, and file-management key combinations.
Quick Open matches filenames and paths without case sensitivity. Separate words can match different parts of the path, and abbreviations can match letters in order. Exact filenames rank before prefixes, contained text, and looser matches. Matching characters are highlighted. An empty query lists open tabs first, then recent files, then other files by name. Document contents and metadata are searched through Search All Files instead.
Search All Files
Choose Search All Files (🔍︎) in the left rail or press Ctrl/⌘ + Shift + F to search file names and contents. Search In starts at Vault. Choose a folder to narrow the search, including its subfolders. Search the folder list by name or path to distinguish folders with the same name.
The Reports checkbox is off when opening Global Search. This excludes files inside the root-level MDash Reports folder and its subfolders. Enable it beside Search In to search those files too. Choosing that folder or a subfolder as the search location includes reports automatically. The help icon shows a tooltip on hover, keyboard focus, or tap.
The report-folder convention applies to any live folder directly under Vault named MDash Reports, regardless of who created it. Names are compared without case sensitivity. A folder with that name elsewhere has ordinary behavior. Renaming or moving the root folder removes its search exclusion and priority placement; naming or moving it back restores them. Every file placed inside it shares the exclusion. Global Search and saved search reports use the same scope. Searching inside an open document is unaffected.
You can also right-click a folder in the Vault panel or Vault Organizer and choose Search in This Folder. If the selected folder is removed, search returns to Vault.
Trash is excluded. Visible read-only bundled files are searchable. Hiding bundled documentation also hides it from search locations and results. Plain-text searches require at least two characters; Regex accepts a single-character pattern.
Results are grouped by file. Each file's header stays visible while scrolling through its matches, with the parent path before the filename. Long parent paths truncate from the beginning to preserve the filename and closest folders. Hover over the header to see the complete path. Use Up and Down to select a result, then Enter to open it at the matching source location.
Opening a result keeps the file's view mode. Editor highlights the source match. Preview scrolls to the corresponding content and briefly highlights the matching text when it can identify it. A match in hidden source, such as a link's address or diagram code, outlines the associated block instead. If the match has no rendered block, Preview scrolls to the approximate source location. Split and Stacked views reveal the result in both panes. A result that matches only the file name opens the file without changing its scroll position.
Choose Save Search Results below the search controls to save a complete Markdown report. On narrow screens, the button reads Search Results. Saving searches every eligible file in the selected location and includes all matches, beyond the display limit. Larger searches show progress; Cancel Save, changing the search, or closing the dialog cancels collection without creating a report. Once local storage finishes, Open Saved Results opens the saved document.
Search and Report Limits
Search displays up to 200 results, with no separate limit per file. The count beside Save Search Results describes the displayed results and files. When additional results exist, a help icon explains the display limit. Choose a narrower folder or a more specific query to see the results you need.
Complete reports allow up to 100,000 content matches and 8,000,000 generated characters. Collection stops after 15 seconds if it cannot finish. If a limit is reached, MDash explains how to narrow the search and saves no partial report.
Background search accepts up to 52,428,800 source characters in the selected scope. Larger scopes require a smaller folder or document before matching can start. Source text stays in your browser.
Search reports are saved in MDash Reports/Search Reports. Saved import reports use MDash Reports/Import Reports. Folders are created only when needed, and matching user-created folders are reused. The root report folder appears immediately after bundled MDash content, when that content is visible, and before ordinary folders under every sort option. Report folders remain editable, movable, renameable, and deletable. Existing report folders elsewhere are not migrated automatically.
Filenames combine the save time and a shortened, sanitized query, such as 2026-10-22 14-30-00 - deployment.md. Existing files are preserved with numbered copies when names conflict. A failed local save can be retried without creating another report.
Each report records the query, search location, matching options, save time with UTC offset, and summary counts. File headings link to their sources. Tables show source lines and excerpts with matching occurrences highlighted; filename-only results do not invent a source line. Use Outline to navigate the report.
Reports are ordinary editable Markdown snapshots. Their excerpts, saved paths, line numbers, and counts do not refresh after later edits. Source links open the file without jumping to the saved line; normal internal-link updates can repair their destinations after moves and renames. Missing or trashed sources become unresolved. Sharing a report includes its excerpts, but does not include its source documents.
Find in the Current Document
Press Ctrl/⌘ + F to open Find and Replace in Editor, Split, or Stacked view, or Find in Preview in Preview view. Editor search looks through document source. Find in Markdown Preview searches rendered text, including phrases across inline formatting and text in collapsed sections. Going to a match inside a collapsed section opens it.
The status appears inside the search field. 3 of 12 means the third match is selected among twelve matches. Editor search shows the total until you select a match. Enter selects the next match; Shift+Enter selects the previous one. Use the navigation buttons when you prefer the mouse. Escape closes search.
For an editable source document, enter replacement text and choose Replace Next or Replace All. Enter in the replacement field runs Replace Next. Read-only documents and Preview provide search and navigation without replacement controls.
Markdown Preview highlights up to 1,000 matches. A plus sign beside the total indicates that more matches exist. Narrow the query to reduce the highlighted results.
Regex matching runs in a cancellable background task with a two-second deadline. Slow expressions show an explanation while the search remains closable and editable. Editor regex search returns up to 100,000 matches; when more exist, narrow the query before using Replace All. Prepared regex replacements are limited to 8,000,000 characters so an oversized replacement cannot create a partial edit.
Choose Search Options
| Option | Use It To | Example |
|---|---|---|
| Case Sensitive | Match the capitalization you enter | Note does not match note |
| Whole Word | Match a complete word | cat does not match catalog |
| Regex | Search with a regular expression | note[0-9]+ matches note12 and note3 |
These options are shared by Search All Files, Find and Replace, and Find in Preview across tabs and reloads. Changing an option in one search applies it to the others. Search queries, replacement text, and folder selection remain separate.
With Regex off, the search treats your text literally, including spaces and backslashes. With Regex on, patterns such as \n can match a line break in document source. Patterns that match only empty positions do not produce selectable matches.
Regex also supports captured text in replacements. In an editable document, find note([0-9]+) and replace it with item$1 to change note12 to item12. $1 inserts the text captured by the first pair of parentheses.
No matches means the query found nothing in the selected scope. Check the folder selection and search options, or try a shorter query. An invalid regular expression shows Invalid regex in red inside the search field. Results clear, and navigation and replacement remain unavailable until you correct the pattern.
Public Search Documentation remains a separate, case-insensitive search of the MDash guides. Workspace search options and the selected Vault folder do not affect it.
Name Files and Folders
New File adds .md when an ordinary name has no extension. Renaming a file without entering an extension preserves its existing supported suffix, such as .md or .json. An explicit extension must be a supported file format. New prose documents named README, LICENSE, NOTICE, or CHANGELOG also receive .md. Technical filenames, including Dockerfile, Makefile, and .env.local, keep their exact names. Imported extensionless documentation keeps its source name and plain-text format.
New files and folders suggest an available name, such as Untitled 3.md or New Folder 2. If a name you enter already exists in the selected location, the dialog shows the proposed numbered name and changes Create to Keep Both. Edit the name to use another name, choose Keep Both, or cancel. Creating an empty item never replaces an existing one. Rename dialogs show the same conflict notice and proposed numbered name before you choose Keep Both. Renaming never replaces or merges another item.
Numbered copies preserve numeric filenames: a second 2026.md becomes 2026 2.md, followed by 2026 3.md. Existing files are not renamed. The valid Markdown filename .md remains supported; its numbered copies start at 2.md.
Tree rows and tabs hide only Markdown extensions (.md, .markdown, and .mdx). Plain-text and code extensions remain visible. Name fields, Properties, and conflict notices use the complete stored filename.
Names are compared without case sensitivity using the complete stored name. A folder named Project and a file named Project.md can share a location and both display as Project. Files named .md, .markdown, or .mdx keep their full names visible so their labels are never empty.
Numbered file copies retain their supported suffix. For example, Report.md becomes Report 2.md, while .env, .config, and .md become 2.env, 2.config, and 2.md. Further copies use the next available number. Environment variants keep their suffix, such as .env.local becoming 2.env.local. Supported extensionless build files use names such as Dockerfile 2. Folders number the complete name: Project.v1 becomes Project.v1 2, and .env.local becomes .env.local 2.
Names cannot end with a dot. Create and Rename show an inline error instead of removing the dot. Imports reject invalid names; batches skip invalid files and entire invalid folder branches with a reason in the import report. Rename the source item before trying again.
These rules apply when creating and renaming files and when resolving file conflicts during copying, moving, importing, and restoring from Trash. Existing files and full backups keep their stored names; no automatic filename migration is performed.
Environment Filenames and Numbered Copies
Name Environment Files
MDash recognizes these 19 dotenv filenames without case sensitivity and preserves the spelling you enter:
.env
.env.local
.env.development
.env.development.local
.env.production
.env.production.local
.env.test
.env.test.local
.env.staging
.env.staging.local
.env.dev
.env.dev.local
.env.prod
.env.prod.local
.env.stg
.env.stg.local
.env.example
.env.sample
.env.template
Numbered copies keep the complete recognized suffix: .env.dev.local becomes 2.env.dev.local, then 3.env.dev.local. These copies remain recognized as environment files.
Renaming a recognized dotenv filename selects its complete name. Entering Settings for .env.local produces Settings.env; entering .env.prod.local keeps that exact name. Ordinary names ending in .env, such as settings.env, remain supported and use names such as settings 2.env for numbered copies.
Other .env.* names need a supported final extension. For example, .env.json uses JSON syntax and becomes .env 2.json when duplicated; .env.md is Markdown. Names such as .env.qa, .env.png, and mm.env.local cannot be used for new or renamed files.
Source and ZIP exports preserve the stored filename and content. A numbered filename remains a separate copy; other tools load it only when their configuration recognizes that filename or refers to it explicitly.
Resolve Conflicts
Move, Copy, Restore, and Import use the same conflict review. A single folder conflict offers Keep Both and, when both items are writable folders, Merge. Several folder conflicts use a review table with Merge Folders, Keep Both, and Skip Folder decisions where available. Merge combines matching nested folders before the file review. File decisions include Keep Existing, Keep Both, and Replace Existing. Files and folders cannot replace each other, and protected items cannot be replaced. Numbered copies reserve names against the complete incoming batch.
Clean Move and Copy operations run after choosing a destination. Clean Restore operations run immediately; conflicting restores default to Keep Both. If an original restore location is unavailable, choose a writable location first. Skipped moves stay in their original location; skipped restores stay in Trash. Internal Move, Copy, and Restore preserve empty folders. External imports create only the parent folders needed by imported files.
Import replacement preserves the destination file's identity and Created date. Move and Restore preserve the incoming file's identity and dates when placing it. If a move also rewrites links in a file, its Modified date updates. Copy creates a new editable file. If the source contents, folder membership, or destination changes during review, review the operation again.
Moving, copying, or restoring a file over another file moves the previous file to Trash. An imported replacement updates the existing vault file and keeps its Created Date. The Help control in conflict review explains the operation's behavior. Each batch offers one Undo action, including merged folders and replacements; later conflicting edits prevent Undo from overwriting newer work.
Update Internal Links Automatically is on by default under Settings → Vault. Moving or renaming items then repairs wiki-links and relative file links that resolved to a single file before the change, when those links appear in editable Markdown documents. Organizer moves, copies, renames, and Trash actions also offer a short-lived Undo action.
Short wiki-links search by name across the live vault. Duplicate names require a choice; paths identify a specific file. Relative Markdown links resolve from the containing folder.
Know What You Can Undo
| Action | What Happens | Recovery |
|---|---|---|
| Rename or move | The item changes location and matching internal links can be updated | Use the immediate Undo action |
| Move, copy, or restore over an existing file | The previous destination moves to Trash | Restore the previous item from Trash or use the immediate Undo action |
| Replace during import | The imported content replaces the previous version in place | Use Undo Import immediately, or recover the earlier version from a full backup |
| Move to Trash | The item and any descendants leave the live vault | Choose Undo or Restore |
| Delete permanently | The selected Trash content is removed | Recover it from an earlier full backup if available |
| Empty Trash | Every item in Trash is removed | Recover it from an earlier full backup if available |
Restoring a full backup replaces the current vault. To recover just one file, restore the earlier backup in a separate browser profile, then export the file you need.
Resolve Changes from Another Tab
Saved changes appear in other MDash tabs in the same browser profile. If another tab saves a different version of a file while you’re still editing it, MDash lists the affected files in the save warning, keeps your unsaved text in the affected tab, and saves edits to other files. Retry Save leaves the saved version intact.
- Keep the affected tab open.
- Copy your unsaved text from each file listed in the warning into a text editor outside MDash and save it there.
- Reload MDash and open the saved versions.
- Compare them with your copies and apply the changes you want to keep.
Word Counts and Reading Time
The status bar and File Properties use the same counts. Markdown counts prose, headings, displayed link labels, table text, and inline code. Metadata, comments, structural markers, fenced code, diagrams, and formulas are excluded. Plain-text documents count their literal text. Word segmentation supports languages without spaces, with language-dependent estimates.
Inline formatting does not split a word. Referenced footnote prose counts once per document; unused footnote definitions are excluded. Readable HTML prose and text inside closed collapsible sections count, while HTML tags, comments, scripts, and styles do not.
Reading time uses 220 words per minute: an empty body shows 0 min, a shorter body shows <1 min, and longer estimates round up to whole minutes. Code and other structured source files show lines and characters without a prose word count or reading estimate. File Properties also shows file size.
Markdown authoring controls and Document Metadata are available only for editable Markdown documents. Code and plain-text files keep ordinary editing, history, search, date and time, symbols, emoji, and File Properties.
Understand Bundled Content
The /MDash README and Docs folder are read-only. When an application update includes revised guides, MDash refreshes the bundled copies on your next launch. Files that already match are left unchanged.
Use Refresh Bundled MDash Docs only as a recovery action. Duplicate a bundled file into a writable folder when you want to annotate or adapt it. You can hide bundled content from Vault Options and show it again later.
Protect the Vault
The vault belongs to the current browser profile and site origin. It is not synchronized to another device. Use a ZIP for a readable folder copy and a full backup for the most complete MDash restore point, including Trash and optional interface settings.
See Import, Export, and Backup for exact backup and restore steps. See Privacy and Local Storage for storage protection, browser data, network requests, analytics, and reset behavior.