-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.yaml.example
169 lines (153 loc) · 5.79 KB
/
config.yaml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
## Color configuration
##
## For each item, the following three attributes can be specified:
## * fore-color: The text color
## * back-color: The background color
## * Valid colors are the usual 16 terminal colors:
## black, red, green, blue, yellow, magenta, cyan, white,
## bright-black, bright-red, bright-green, bright-yellow,
## bright-blue, bright-magenta, bright-cyan, bright-white
## * style:
## * Valid styles are:
## standout, underline, reverse-video, blink, dim, bold
## Please note that not all styles are necessarily supported
## by your terminal.
##
## If a color/style is not given, it falls back to the terminal
## default:
##
## # terminal-default back-color and style
## line-numbers:
## fore-color: blue
## ...
##
## # reset line-numbers to terminal default
## line-numbers: {}
## ...
##
## If no config is given for a color, the vgrep default config
## steps in (which may differ from your terminal's default):
##
## # use vgrep default config for line numbers
## line-numbers:
## ...
##
colors:
# Line numbers
line-numbers:
fore-color: blue
# Highlighted line numbers
line-numbers-hl:
fore-color: blue
style: bold
# Normal text
normal: {}
# Highlighted text
normal-hl:
style: bold
# The file names in the results list
file-headers:
back-color: green
# The line currently selected by the cursor
selected:
style: standout
## The tabstop witdth (a tab character moves the indentation to the
## next multiple of this value)
##
tabstop: 8
## The editor to be used by the 'e' key (read from $EDITOR by
## default, but can be overridden here).
##
# editor: "vi"
## Keybindings
##
## The following commands can be mapped:
## * display-pager-only -- Display the pager full-screen
## * display-results-only -- Display the results list full-screen
## * split-focus-pager -- Split screen, focus on pager
## * split-focus-results -- Split screen, focus on results list
## * pager-up -- Scroll one line up in pager
## * pager-down -- Scroll one line down in pager
## * pager-page-up -- Scroll one page up in pager
## * pager-page-down -- Scroll one page down in pager
## * pager-half-page-up -- Scroll half a page up in pager
## * pager-half-page-down -- Scroll half a page down in pager
## * pager-scroll-left -- Scroll eight characters left in pager
## * pager-scroll-right -- Scroll eight characters right in pager
## * results-up -- Move to previous result
## * results-down -- Move to next result
## * results-page-up -- Move one page up in results list
## * results-page-down -- Move one page down in results list
## * prev-result -- Move to previous result and update pager
## * next-result -- Move to next result and update pager
## * pager-goto-result -- Update pager with currently selected result
## * open-file-in-editor -- Open file in external editor and jump to
## currently selected result
## * exit -- Exit the application
## * unset -- Treat keybinding as if not present, fall back to
## -- alternative binding (used to override keybindings)
## A command can be mapped to multiple keys.
##
## Key notation examples
## * j -- the 'j' key
## * J -- the 'J' key (Shift-'j')
## * Up, Down, Left, Right -- the corresponding arrow keys
## * S-Up, C-Up, M-Up -- Modifiers Shift, Ctrl, Alt/Meta combined with the
## Up key
## * C-M-S-Up, C-S-M-Up -- Modifiers can be combined, the order is irrelevant
## (both correspond to Control-Alt-Shift-Up)
## * The Shift key can only be applied to non-character keys (like Up, Down,
## Space, Enter): Shift-'j' is represented by 'J', not by 'S-j'.
##
## Default keybindings:
keybindings:
# These keybindings are always in effect, but can be overridden.
global-keybindings:
q : exit
e : open-file-in-editor
# These keybindings apply when navigating the results list. They override
# any colliding global-keybinding.
results-keybindings:
Up : results-up
Down : results-down
PageUp : results-page-up
PageDown : results-page-down
Enter : pager-goto-result
k : results-up
j : results-down
C-b : results-page-up
C-f : results-page-down
f : display-results-only
Tab : split-focus-pager
# These apply when navigating the pager. They override any colliding
# global-keybinding.
pager-keybindings:
Up : pager-up
Down : pager-down
PageUp : pager-page-up
PageDown : pager-page-down
Left : pager-scroll-left
Right : pager-scroll-right
k : pager-up
j : pager-down
h : pager-scroll-left
l : pager-scroll-right
C-u : pager-half-page-up
C-d : pager-half-page-down
C-b : pager-page-up
C-f : pager-page-down
Tab : split-focus-results
f : display-pager-only
q : display-results-only
## Alternative keybindings: tig-style
## (jk to navigate the pager, Up/Down to navigate the results list)
##
# keybindings:
# results-keybindings:
# O : display-results-only
# f : unset
# pager-keybindings:
# O : display-pager-only
# Up : prev-result
# Down : next-result
# f : unset