StringLane

Browse docsHow to Reload Files from Disk
How-To

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

PathWhat it does
⌘R keyboard shortcutReloads all locale files from disk
Reload button in the status barSame as ⌘R
⌘K → "Reload from Disk"Same as ⌘R, via the Command Palette
File → Reload from Disk menu itemSame as ⌘R

What happens

  1. Any pending unsaved edits (debounced writes that haven't flushed yet) are cancelled so they don't overwrite the new on-disk state.
  2. Every locale file is re-parsed from disk.
  3. Validation runs again from scratch.
  4. 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 checkout or branch switch that touched locale files.
  • After running a script that bulk-rewrites files (e.g. find-and-replace across all .arb via sed).
  • 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