Fix #13: Expose Pre-edit Backup restoration

Preserve full diff opcodes before grouping, route modal navigation to a two-axis viewport-sized scroller, and calculate side-by-side layout using terminal cell widths so tabbed Hosts File lines keep a stable divider.
This commit is contained in:
Philip Henning 2026-09-04 20:19:17 +02:00
parent 6a3e1e0d5a
commit e268794564
13 changed files with 1103 additions and 19 deletions

View file

@ -4,4 +4,9 @@ The application starts read-only and permits changes to `/etc/hosts` only after
sudo access has been validated and a timestamped backup has been created. All
privileged writes go through `HostsManager` during that mode. This makes the
authorization boundary visible to the user and guarantees a pre-edit safety
snapshot; the temporary backup is not a user-facing recovery system.
snapshot. While Privileged Mode remains active, the TUI exposes that session's
exact Pre-edit Backup path and can restore it after explicit confirmation. The
restore confirmation identifies both the backup source and Hosts File target;
it presents an exact-file Git-style diff and rechecks both reviewed files before
restoring. On success the application reloads the Hosts File and clears
undo/redo history.