# vim:fileencoding=utf-8:foldmethod=marker

#: Diffing {{{

# syntax_aliases pyj:py pyi:py recipe:py

#: File extension aliases for syntax highlight. For example, to syntax
#: highlight file.xyz as file.abc use a setting of xyz:abc. Multiple
#: aliases must be separated by spaces.

# num_context_lines 3

#: The number of lines of context to show around each change.

# diff_cmd auto

#: The diff command to use. Must contain the placeholder _CONTEXT_
#: which will be replaced by the number of lines of context. A few
#: special values are allowed: auto will automatically pick an
#: available diff implementation. builtin will use the anchored diff
#: algorithm from the Go standard library. git will use the git
#: command to do the diffing. diff will use the diff command to do the
#: diffing.

# replace_tab_by \x20\x20\x20\x20

#: The string to replace tabs with. Default is to use four spaces.

# ignore_name

#: A glob pattern that is matched against only the filename of files
#: and directories. Matching files and directories are ignored when
#: scanning the filesystem to look for files to diff. Can be specified
#: multiple times to use multiple patterns. For example::

#:     ignore_name .git
#:     ignore_name *~
#:     ignore_name *.pyc

# mark_moved_lines yes

#: Highlight lines that are moved, that is removed from the left and
#: added to the right differently, using the moved_bg color.

# word_diff_mode words

#: The algorithm to use for highlighting which parts of changed lines
#: differ. When set to words, changed words in each changed line are
#: highlighted. When set to central, the central changed region of
#: each changed line is highlighted at the byte level. The words mode
#: is generally more useful as it shows exactly which words changed.
#: Note that the words mode only applies when a changed chunk has
#: equal numbers of added and removed lines.

# word_regex [^\s\p{P}]+

#: The regular expression used to define a word when word_diff_mode is
#: words. The default value matches any run of non-whitespace and non-
#: punctuation characters. The expression must be a valid Go regular
#: expression. If an invalid expression is provided, diff will fail
#: with an error.

#: }}}

#: Colors {{{

# color_scheme auto

#: Whether to use the light or dark colors. The default of auto means
#: to follow the parent terminal color scheme. Note that the actual
#: colors used for dark schemes are set by the dark_* settings below
#: and the non-prefixed settings are used for light colors.

# pygments_style default

#: The pygments color scheme to use for syntax highlighting. See
#: pygments builtin styles <https://pygments.org/styles/> for a list
#: of schemes. Note that this **does not** change the colors used for
#: diffing, only the colors used for syntax highlighting. To change
#: the general colors use the settings below. This sets the colors
#: used for light color schemes, use dark_pygments_style to change the
#: colors for dark color schemes.

# dark_pygments_style github-dark

#: The pygments color scheme to use for syntax highlighting with dark
#: colors. See pygments builtin styles <https://pygments.org/styles/>
#: for a list of schemes. Note that this **does not** change the
#: colors used for diffing, only the colors used for syntax
#: highlighting. To change the general colors use the settings below.
#: This sets the colors used for dark color schemes, use
#: pygments_style to change the colors for light color schemes.

# foreground      black
# dark_foreground #f8f8f2
# background      white
# dark_background #212830

#: Basic colors

# title_fg      black
# dark_title_fg white
# title_bg      white
# dark_title_bg #212830

#: Title colors

# margin_bg      #fafbfc
# dark_margin_bg #212830
# margin_fg      #aaaaaa
# dark_margin_fg #aaaaaa

#: Margin colors

# 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

#: Removed text backgrounds

# 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

#: Added text backgrounds

# moved_bg             #fffde7
# dark_moved_bg        #003333
# moved_margin_bg      #fff3b0
# dark_moved_margin_bg #00495b

#: Moved text backgrounds (same text that was removed in one place and
#: added in another)

# filler_bg      #fafbfc
# dark_filler_bg #262c36

#: Filler (empty) line background

# margin_filler_bg      none
# dark_margin_filler_bg none

#: Filler (empty) line background in margins, defaults to the filler
#: background

# hunk_margin_bg      #dbedff
# dark_hunk_margin_bg #0c2d6b
# hunk_bg             #f1f8ff
# dark_hunk_bg        #253142

#: Hunk header colors

# 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

#: Highlighting

#: }}}

#: Keyboard shortcuts {{{

#: Quit

# map q   quit
# map esc quit

#: Scroll down

# map j    scroll_by 1
# map down scroll_by 1

#: Scroll up

# map k  scroll_by -1
# map up scroll_by -1

#: Scroll to top

# map home scroll_to start

#: Scroll to bottom

# map end scroll_to end

#: Scroll to next page

# map page_down scroll_to next-page
# map space     scroll_to next-page
# map ctrl+f    scroll_to next-page

#: Scroll to previous page

# map page_up scroll_to prev-page
# map ctrl+b  scroll_to prev-page

#: Scroll down half page

# map ctrl+d scroll_to next-half-page

#: Scroll up half page

# map ctrl+u scroll_to prev-half-page

#: Scroll to next change

# map n scroll_to next-change

#: Scroll to previous change

# map p scroll_to prev-change

#: Scroll to next file

# map shift+j scroll_to next-file

#: Scroll to previous file

# map shift+k scroll_to prev-file

#: Show all context

# map a change_context all

#: Show default context

# map = change_context default

#: Increase context

# map + change_context 5

#: Decrease context

# map - change_context -5

#: Search forward

# map / start_search regex forward

#: Search backward

# map ? start_search regex backward

#: Scroll to next search match

# map . scroll_to next-match
# map > scroll_to next-match

#: Scroll to previous search match

# map , scroll_to prev-match
# map < scroll_to prev-match

#: Search forward (no regex)

# map f start_search substring forward

#: Search backward (no regex)

# map b start_search substring backward

#: Copy selection to clipboard

# map y copy_to_clipboard

#: Copy selection to clipboard or exit if no selection is present

# map ctrl+c copy_to_clipboard_or_exit

#: }}}

