]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tigrc
tigrc: Unbind unnecessary views.
[config/dotfiles.git] / tigrc
1 # tig configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Show the revision graph like gitk does.
20 set show-rev-graph = yes
21
22 # Use relative dates.
23 set show-date = relative
24
25
26 # BINDINGS
27
28 # Allow moving in the main menu while displaying a diff in the bottom of the
29 # screen.
30 bind generic J next
31 bind generic K previous
32
33 # Mutt like bindings to move to first and last line.
34 bind generic = move-first-line
35 bind generic * move-last-line
36
37 # Close current view like in mutt.
38 bind diff i view-close
39
40 # Unbind unnecessary views. I only use the main view and view diffs of
41 # commits.
42 bind generic m none
43 bind generic d none
44 bind generic l none
45 bind generic t none
46 bind generic f none
47 bind generic B none
48 bind generic H none
49 bind generic p none
50 bind generic S none
51 bind generic c none
52 # Unbind commands which may change the repository. I use tig only as a viewer.
53 bind generic C none
54 bind generic u none
55 bind generic ! none
56 bind generic M none
57 bind generic 1 none
58 bind generic @ none
59 bind generic e none
60 bind generic G none
61
62
63 # COLORS
64
65 # Try to mimic gitk's colors.
66
67 color date      default default
68 color delimiter default default # ~ if text is too long
69
70 # Main window.
71 color cursor         black   cyan         # currently selected line
72 color main-author    default default      # just 'author' in newer versions
73 color main-head      green   default bold # HEAD
74 color main-ref       green   default      # branches
75 color main-remote    yellow  default      # remote branches
76 color main-tag       yellow  default bold # tags
77 color main-local-tag yellow  default bold # local tags (normal tags)
78
79 # Information at the top of the commit diff.
80 color commit    default default
81 color pp-author default default
82 color pp-commit default default
83 color pp-merge  default default
84 color pp-date   default default
85 color pp-adate  default default
86 color pp-cdate  default default
87 color pp-refs   default default
88 # Special parts of the commit message.
89 color signoff   default default
90 color acked     default default
91
92 # Diff coloring.
93 color diff-header default default bold # diff --git a/.. b/..
94 color diff-index  default default bold # index abc..def
95 color diff-chunk  cyan    default      # @@ -.. +.. @@
96
97 # vim: ft=muttrc