kitten-diff(1) kitty kitten-diff(1) (NAME) kitten-diff - Kitty (MAJOR FEATURES) o (side-by-side) kitty o (syntax highlighting) o SSH o ( ) (INSTALLATION) kitty <# quickstart>. (USAGE) kitty : kitten diff file1 file2 file1 file2 . (alias) : alias d="kitten diff" : d file1 file2 . (KEYBOARD CONTROLS) +----------------------------+-----------------------+ | | | +----------------------------+-----------------------+ | | Q | +----------------------------+-----------------------+ | | K, Up | | | | +----------------------------+-----------------------+ | | J, Down | | | | | | | +----------------------------+-----------------------+ | | PgUp | | | | | | | +----------------------------+-----------------------+ | | PgDn | | | | | | | +----------------------------+-----------------------+ | | Home | | | | +----------------------------+-----------------------+ | | End | | | | +----------------------------+-----------------------+ | | Space, PgDn, Ctrl+F | | | | +----------------------------+-----------------------+ | | PgUp, Ctrl+B | | | | +----------------------------+-----------------------+ | | Ctrl+D | | | | | | | +----------------------------+-----------------------+ | | Ctrl+U | | | | | | | +----------------------------+-----------------------+ | | N | | | | | | | +----------------------------+-----------------------+ | | P | | | | | | | +----------------------------+-----------------------+ | | + | | | | | | | +----------------------------+-----------------------+ | | - | | | | +----------------------------+-----------------------+ | | A | | | | | | | +----------------------------+-----------------------+ | | = | | | | | | | +----------------------------+-----------------------+ | | / | | | | +----------------------------+-----------------------+ | | ? | | | | +----------------------------+-----------------------+ | | Esc | | | | | | | +----------------------------+-----------------------+ | | >, . | | | | | | | +----------------------------+-----------------------+ | | <, , | | | | | | | +----------------------------+-----------------------+ | | y | | | | | | | +----------------------------+-----------------------+ | | Ctrl+C | | | | | | | +----------------------------+-----------------------+ (INTEGRATING WITH GIT) ~/.gitconfig : [diff] tool = kitty guitool = kitty.gui [difftool] prompt = false trustExitCode = true [difftool "kitty"] cmd = kitten diff $LOCAL $REMOTE [difftool "kitty.gui"] cmd = kitten diff $LOCAL $REMOTE kitty-diff : git difftool --no-symlinks --dir-diff . (WHY DOES THIS WORK ONLY IN KITTY?) diff kitten kitty <> kitty <> <> . kitten kitty ( ). kitty :) (CONFIGURATION) diff.conf kitty <#confloc> . . (DIFFING) syntax_aliases syntax_aliases pyj:py pyi:py recipe:py . file.xyz file.abc xyz:abc . . num_context_lines num_context_lines 3 . diff_cmd diff_cmd auto . _CONTEXT_ . : auto . builtin (anchored diff) Go . git git . diff diff . replace_tab_by replace_tab_by \x20\x20\x20\x20 . . ignore_name glob . . . : ignore_name .git ignore_name *~ ignore_name *.pyc mark_moved_lines mark_moved_lines yes ( ) moved_bg . word_diff_mode word_diff_mode words . words . central . words . words (chunk) . word_regex word_regex [^\s\p{P}]+ (regex) word_diff_mode words . . Go . diff . sticky_header sticky_header yes . (COLORS) color_scheme color_scheme auto . auto . dark_* . pygments_style pygments_style default pygments . pygments . . . dark_pygments_style . dark_pygments_style dark_pygments_style github-dark pygments . pygments . . . pygments_style . foreground, dark_foreground, background, dark_background foreground black dark_foreground #f8f8f2 background white dark_background #212830 title_fg, dark_title_fg, title_bg, dark_title_bg title_fg black dark_title_fg white title_bg white dark_title_bg #212830 margin_bg, dark_margin_bg, margin_fg, dark_margin_fg margin_bg #fafbfc dark_margin_bg #212830 margin_fg #aaaaaa dark_margin_fg #aaaaaa removed_bg, dark_removed_bg, highlight_removed_bg, dark_highlight_removed_bg, removed_margin_bg, dark_removed_margin_bg removed_bg #ffeef0 dark_removed_bg #352c33 highlight_removed_bg #fdb8c0 dark_highlight_removed_bg #5c3539 removed_margin_bg #ffdce0 dark_removed_margin_bg #5c3539 added_bg, dark_added_bg, highlight_added_bg, dark_highlight_added_bg, added_margin_bg, dark_added_margin_bg added_bg #e6ffed dark_added_bg #263834 highlight_added_bg #acf2bd dark_highlight_added_bg #31503d added_margin_bg #cdffd8 dark_added_margin_bg #31503d moved_bg, dark_moved_bg, moved_margin_bg, dark_moved_margin_bg moved_bg #fffde7 dark_moved_bg #003333 moved_margin_bg #fff3b0 dark_moved_margin_bg #00495b ( ) filler_bg, dark_filler_bg filler_bg #fafbfc dark_filler_bg #262c36 () margin_filler_bg, dark_margin_filler_bg margin_filler_bg none dark_margin_filler_bg none () hunk_margin_bg, dark_hunk_margin_bg, hunk_bg, dark_hunk_bg hunk_margin_bg #dbedff dark_hunk_margin_bg #0c2d6b hunk_bg #f1f8ff dark_hunk_bg #253142 (hunk) search_bg, dark_search_bg, search_fg, dark_search_fg, select_bg, dark_select_bg, select_fg, dark_select_fg search_bg #444 dark_search_bg #2c599c search_fg white dark_search_fg white select_bg #b4d5fe dark_select_bg #2c599c select_fg black dark_select_fg white (KEYBOARD SHORTCUTS) map --allow-fallback=shifted,ascii q quit map esc quit map --allow-fallback=shifted,ascii j scroll_by 1 map down scroll_by 1 map --allow-fallback=shifted,ascii k scroll_by -1 map up scroll_by -1 map home scroll_to start map end scroll_to end map page_down scroll_to next-page map space scroll_to next-page map --allow-fallback=shifted,ascii ctrl+f scroll_to next-page map page_up scroll_to prev-page map --allow-fallback=shifted,ascii ctrl+b scroll_to prev-page map --allow-fallback=shifted,ascii ctrl+d scroll_to next-half-page map --allow-fallback=shifted,ascii ctrl+u scroll_to prev-half-page map --allow-fallback=shifted,ascii n scroll_to next-change map --allow-fallback=shifted,ascii p scroll_to prev-change map --allow-fallback=shifted,ascii shift+j scroll_to next-file map --allow-fallback=shifted,ascii shift+k scroll_to prev-file map --allow-fallback=shifted,ascii a change_context all map = change_context default map + change_context 5 map - change_context -5 map / start_search regex forward map ? start_search regex backward map . scroll_to next-match map > scroll_to next-match map , scroll_to prev-match map < scroll_to prev-match ( regex) map --allow-fallback=shifted,ascii f start_search substring forward ( regex) map --allow-fallback=shifted,ascii b start_search substring backward map --allow-fallback=shifted,ascii y copy_to_clipboard map --allow-fallback=shifted,ascii ctrl+c copy_to_clipboard_or_exit (SOURCE CODE FOR DIFF) kitten . (COMMAND LINE INTERFACE) kitten diff [options] file_or_directory_left file_or_directory_right / . ssh:hostname:remote-file-path . (OPTIONS) --context . diff.conf . : -1 --config () . diff.conf . . NONE . : $XDG_CONFIG_HOME/kitty/diff.conf ~/.config/kitty/diff.conf $XDG_CONFIG_DIRS/kitty/diff.conf. . KITTY_CONFIG_DIRECTORY <#envvar-KITTY_CONFIG_DIRECTORY> . /etc/xdg/kitty/diff.conf ( ). . - /dev/stdin STDIN . --override , -o . : name=value. : -o background=gray diff.conf (SAMPLE DIFF.CONF) diff.conf sample diff.conf . (AUTHOR) Kovid Goyal (COPYRIGHT) 2026, Kovid Goyal 0.48.2 July 30, 2026 kitten-diff(1)