All apps/diff

diff

diff

Compare files line by line.

Runs as diff|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 11 fields

Compare two files or directories and print the differences. Output-format templates (--*-format) are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui diff
Compare filesExample values, fixed in this page — nothing here reaches a terminal
Basic
First file or directory*
any
Second file or directory*
any
Unified format
-u
Advanced
Ignore all white space
--ignore-all-space
TasksEach one presets the form for one job
Unified diff of two files
leftrightunifiedignore_all_space
Compare two directories
leftrightrecursivebriefexclude
ParametersOnly these flags are editable in the form
First file or directory
path · positional 0
Second file or directory
path · positional 1
Unified format
boolean
-u
Compare directories recursively
boolean
--recursive-r
Only report whether files differ
boolean
--brief-q
Side by side
boolean
--side-by-side-y
Ignore case
boolean
--ignore-case-i
Ignore all white space
boolean
--ignore-all-space-w
Ignore changes in amount of white space
boolean
--ignore-space-change-b
Treat absent files as empty
boolean
--new-file-N
Exclude pattern
string · repeatable
--exclude-x
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed diff against its version. A form that does not match your version is not offered.