-
Notifications
You must be signed in to change notification settings - Fork 8
/
default.nuon
100 lines (99 loc) · 4.04 KB
/
default.nuon
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
{
show_cell_path: true, # whether or not to show the current cell path above the status bar
show_table_header: true, # whether or not to show the table header in "table" layout
show_hints: true, # whether or not to show the hints with keybindings
layout: "table", # the layout of the data, either "table" or "compact"
margin: 10, # the number of lines to keep between the cursor and the top / bottom
number: false, # show line numbers
relativenumber: false, # show line numbers, relative to the current one (overrides number)
# "reset" is used instead of "black" in a dark terminal because, when the terminal is actually
# black, "black" is not really black which is ugly, whereas "reset" is really black.
colors: {
normal: { # the colors for a normal row
name: {
background: reset,
foreground: green,
},
data: {
background: reset,
foreground: white,
},
shape: {
background: reset,
foreground: blue,
},
},
selected: { # the colors for the row under the cursor
background: white,
foreground: black,
},
selected_modifier: "bold", # a modifier to apply onto the row under the cursor
selected_symbol: "", # the symbol to show to the left of the row under the cursor
status_bar: {
normal: { # the colors for the status bar in NORMAL mode
background: black,
foreground: white,
},
insert: { # the colors for the status bar in INSERT mode
background: black,
foreground: lightyellow,
},
peek: { # the colors for the status bar in PEEKING mode
background: black,
foreground: lightgreen,
}
bottom: { # the colors for the status bar in BOTTOM mode
background: black,
foreground: lightmagenta,
}
}
editor: { # the colors when editing a cell
frame: {
background: black,
foreground: lightcyan,
},
buffer: {
background: reset,
foreground: white,
},
},
warning: {
foreground: red,
background: yellow,
},
line_numbers: {
normal: {
background: reset,
foreground: white,
},
selected: {
background: white,
foreground: black,
},
},
}
keybindings: {
quit: 'q', # quit `explore`
insert: 'i', # go to INSERT mode to modify the data
normal: "escape", # go back to NORMAL mode to navigate through the data
navigation: { # only in NORMAL mode
left: 'h', # go back one level in the data
down: 'j', # go one row down in the current level
up: 'k', # go one row up in the current level
right: 'l', # go one level deeper in the data or hit the bottom
half_page_down: "<c-d>", # go one half page up in the data
half_page_up: "<c-u>", # go one half page down in the data
goto_top: 'g', # go to the top of the data, i.e. the first element or the first key
goto_bottom: 'G', # go to the bottom of the data, i.e. the last element or the last key
goto_line: 'g', # go at a particular line in the data
},
peek: 'p', # go to PEEKING mode to peek a value
peeking: { # only in PEEKING mode
all: 'a', # peek the whole data, from the top level
cell_path: 'c', # peek the cell path under the cursor
under: 'p', # peek only what's under the cursor
view: 'v', # peek the current view, i.e. what is visible
},
transpose: 't', # transpose the data if it's a table or a record, this is an *involution*
}
}