How to Reload Files from Disk
Press ⌘R to discard pending writes and re-read every locale file from disk — useful after git checkout, branch switch, or external edits.
When you edit a locale file outside StringLane — git checkout, branch switch, find-and-replace in another editor, an flutter gen-l10n rerun — and StringLane is still showing the old values, hit ⌘R to reload everything from disk.
How
| Path | What it does |
|---|---|
| ⌘R keyboard shortcut | Reloads all locale files from disk |
| Reload button in the status bar | Same as ⌘R |
| ⌘K → "Reload from Disk" | Same as ⌘R, via the Command Palette |
| File → Reload from Disk menu item | Same as ⌘R |
What happens
- Any pending unsaved edits (debounced writes that haven't flushed yet) are cancelled so they don't overwrite the new on-disk state.
- Every locale file is re-parsed from disk.
- Validation runs again from scratch.
- The detail pane re-renders with the loaded values.
The key currently selected in the sidebar stays selected (if it still exists in the new state).
When to use it
- After a
git checkoutor branch switch that touched locale files. - After running a script that bulk-rewrites files (e.g. find-and-replace across all
.arbviased). - When you suspect StringLane and disk are out of sync — for example, the status bar says "Saved · just now" but the file viewer shows older values.
- When you want to abandon every pending edit without saving them. (Be aware: pending unsaved edits are cancelled — they won't be flushed first. If you want them on disk, just wait for the auto-save to finish before reloading.)
What it doesn't do
- It doesn't undo previously-saved edits — those are already on disk and reload reads them back as-is. Use git or your editor's undo.
- It doesn't reload Settings or Project Settings — those have their own write paths.
- It doesn't reset your sidebar filter, dock orientation, or other UI state.
Related
- How to Use the Command Palette — every action including "Reload from Disk".
- Customize keybindings — rebind ⌘R if it conflicts with a system shortcut.