Skip to content

Commit

Permalink
add comments to the default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Aug 19, 2023
1 parent 643c697 commit 08e9404
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions examples/configuration/config.nuon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
show_cell_path: true,
layout: "table",
show_cell_path: true, # whether or not to show the current cell path above the status bar
layout: "table", # the layout of the data, either "table" or "compact"
}
28 changes: 14 additions & 14 deletions examples/configuration/keybindings.nuon
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
quit: 'q',
insert: 'i',
normal: "escape",
navigation: {
left: 'h',
down: 'j',
up: 'k',
right: 'l',
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
},
peek: 'p',
peeking: {
all: 'a',
current: 'c',
under: 'u',
quit: "escape",
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
current: 'c', # peek the current data, i.e. what is visible
under: 'u', # peek only what's under the cursor
quit: "escape", # go back to NORMAL mode to navigate through the data
},
}
14 changes: 7 additions & 7 deletions examples/configuration/themes/dark.nuon
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
normal: {
normal: { # the colors for a normal row
background: reset, # "black" is not pure *black*
foreground: white,
},
selected: {
selected: { # the colors for the row under the cursor
background: white,
foreground: black,
},
selected_modifier: "bold",
selected_symbol: "",
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: {
normal: { # the colors for the status bar in NORMAL mode
background: white,
foreground: black,
},
insert: {
insert: { # the colors for the status bar in INSERT mode
background: lightyellow,
foreground: black,
},
peek: {
peek: { # the colors for the status bar in PEEKING mode
background: lightgreen,
foreground: black,
}
Expand Down

0 comments on commit 08e9404

Please sign in to comment.