]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tigrc
tigrc: Add some more key bindings.
[config/dotfiles.git] / tigrc
1 # tig configuration file.
2
3
4 # Show the revision graph like gitk does.
5 set show-rev-graph = yes
6
7 # Use relative dates.
8 set show-date = relative
9
10
11 # BINDINGS
12
13 # Allow moving in the main menu while displaying a diff in the bottom of the
14 # screen.
15 bind generic J next
16 bind generic K previous
17
18 # Mutt like bindings to move to first and last line.
19 bind generic = move-first-line
20 bind generic * move-last-line
21
22 # Close current view like in mutt.
23 bind diff i view-close
24
25
26 # COLORS
27
28 # Try to mimic gitk's colors.
29
30 color date      default default
31 color delimiter default default # ~ if text is too long
32
33 # Main window.
34 color main-author    default default      # just 'author' in newer versions
35 color main-head      green   default bold # HEAD
36 color main-ref       green   default      # branches
37 color main-remote    yellow  default      # remote branches
38 color main-tag       yellow  default bold # tags
39 color main-local-tag yellow  default bold # local tags (normal tags)
40
41 # Information at the top of the commit diff.
42 color pp-adate  default default
43 color pp-cdate  default default
44 color pp-author default default
45 color pp-commit default default
46 color pp-merge  default default
47 color pp-date   default default
48 color pp-adate  default default
49 color pp-cdate  default default
50 color pp-refs   default default
51 # Special parts of the commit message.
52 color signoff   default default
53 color acked     default default
54
55 # Diff coloring.
56 color diff-header default default bold # diff --git a/.. b/..
57 color diff-index  default default bold # index abc..def
58 color diff-chunk  cyan    default      # @@ -.. +.. @@