Debian Codegraph @

docs/diff_review_mode.md

raw
1 # Diff Review Mode
2
3 Diff review mode provides read-only navigation for unified and classic diff files with speech-first output.
4
5 ## Quick Workflow
6
7 1. Copy the full absolute path of a diff file to the Fenrir clipboard.
8 2. Press `Fenrir + Ctrl + D` to toggle diff mode on.
9 3. Review the diff using the keys below.
10 4. Press `Esc` to leave diff mode.
11
12 If the clipboard does not contain a full absolute file path, Fenrir announces an error and does not enter diff mode.
13
14 ## Keys (Active Only In Diff Mode)
15
16 - `h` - Next hunk
17 - `Shift + h` - Previous hunk
18 - `f` - Next file section
19 - `Shift + f` - Previous file section
20 - `a` - Next added line
21 - `Shift + a` - Previous added line
22 - `d` - Next removed line
23 - `Shift + d` - Previous removed line
24 - `Up` - Previous line
25 - `Down` - Next line
26 - `Left` - Previous character
27 - `Right` - Next character
28 - `Ctrl + Left` - Previous word
29 - `Ctrl + Right` - Next word
30 - `s` - Diff summary
31 - `F1` - Speak key help
32 - `Esc` - Exit diff mode
33
34 ## Speech Behavior
35
36 - Added and removed content is spoken as `Added:` and `Removed:` lines.
37 - Marker-only lines are normalized for speech:
38 - `+++` is spoken as `added`
39 - `---` is spoken as `removed`
40 - Classic diff markers are spoken in plain language:
41 - `17c17` -> `line 17 changed`
42 - `17d16` -> `line 17 deleted`
43 - `16a17` -> `line 17 added`
44
45 ## Notes
46
47 - Diff mode is read-only and does not modify the diff file.
48 - Normal Fenrir key bindings are restored when diff mode exits.