Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Diff

Diff support is available natively in Gram.

Configuration

Gram will not attempt to format diff files and has remove_trailing_whitespace_on_save and ensure-final-newline-on-save set to false.

Gram will automatically recognize files with patch and diff extensions as Diff files. To recognize other extensions, add them to file_types in your Gram settings.jsonc:

  "file_types": {
    "Diff": ["dif"]
  },