Keyboard Shortcuts

Commands

F1Help
Ctrl+OSelect Files/Directories (open)
Ctrl+SSave Modifications
Ctrl+WClose the current comparison
Ctrl+PPrint
F5Refresh
Ctrl+F5Re-verify Contents
F4Split screen (both files side by side)
Ctrl+1Left file only
Ctrl+2Right file only
EscBack to the directory comparison (previous selection). Three things come first, one per key press: the search highlighting is removed if one is active, a running background content check is stopped if one is in progress (the pairs it had not reached stay unverified), and a marked line or area is unmarked, in a file comparison and in a directory listing alike. Closes Diffoniq when it was started as a diff viewer with two paths and there is nothing to go back to
Ctrl+BBinary Comparison
Ctrl+PgDn / Ctrl+PgUpNext / previous file pair
Alt+F4Exit

Navigation

Tab / BkSpNext / previous difference (see below)
Num + / Num −Next / previous difference (numeric keypad)
PgDn / PgUpPage forward / backward (the view glides, see below); a cursor line keeps its place on the screen, and at the end or beginning of the file it goes to the last or first row
Ctrl+Home / Ctrl+EndBeginning / end of the file (the view skips to just before it and glides the last screen)
Ctrl+GGo to a specific line
Home / EndStart / end of line (horizontal)
← / →Scroll horizontally; with a cursor line, move the cursor to the left or right side. Pressed toward the side the cursor is already on, that side fills the window; the other arrow then shows the other side alone, and the same arrow once more brings both sides back
↑ / ↓Scroll, or move the cursor line if cursor mode is active
Shift + ↑ ↓ PgUp PgDn Home EndExtend the marked area from the cursor line; an area that is already marked grows or shrinks from its far end, even after Shift was released in between
ReturnOpen the selected pair (directory listing); in a file comparison, hide or show the matching areas around the cursor line, which stays in place (without a cursor line, Return puts one on the top row first)

Next and previous difference. With a cursor line (a marked line or area), the search starts from that line, and the mark moves to the first changed line of the difference it finds. The view scrolls only when that difference is not wholly on the screen; then the difference goes to the top, with its margin lines above it. Without a cursor line the top row of the screen is the starting point, and the next difference always goes to the top. In both directions a beep says that there is no further difference.

Gliding. A jump to a difference does not happen at once: the view glides there, in a file comparison and in a directory comparison alike, so you see in which direction it moves. PgUp and PgDn (with or without Shift), Ctrl+Home and Ctrl+End, the View menu commands behind them and a click into the free area of the scroll bar glide the same way. A move of several screens first skips to just before the target and glides the last screen. The movement never takes longer than a fifth of a second, and any key or click shows the target at once. Pressing a key in quick succession, or holding it down, skips the movement: a held PgDn turns the pages as fast as before. The cursor line and a marked area end up exactly where they would without the animation. What your hand steers directly never glides: the mouse wheel, the arrow keys, the arrows of the scroll bar and dragging its thumb. When Animation effects is off in Windows (Settings > Accessibility > Visual effects), the view jumps as before.

Editing

Ctrl+ZUndo the last modification (multi-level)
Ctrl+Y or Ctrl+Shift+ZRedo the last undone modification
Ctrl+C or Ctrl+InsCopy marked lines to the clipboard
Ctrl+V or Shift+InsPaste clipboard lines into a marked area
DelDelete marked lines
Ctrl+FFind
F3Find Next (repeat last search forward)
Shift+F3Find Previous (repeat last search backward)

Display toggles

F7Hide Matching Areas
F8Line Numbers

See also: Mouse Operations