Skip to content

Commit e4d1d7e

Browse files
authored
Update and replace wrong theme config paths
1 parent 4fe07ef commit e4d1d7e

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

book/coloring_and_theming.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ This is the current list of primitives. Not all of these are configurable. The c
286286
| `binary` | Color::White.normal() | \* |
287287
| `block` | Color::White.normal() | \* |
288288
| `bool` | Color::White.normal() | \* |
289-
| `cell-path` | Color::White.normal() | \* |
289+
| `cellpath` | Color::White.normal() | \* |
290290
| `condition` | | |
291291
| `custom` | | |
292-
| `datetime` | Color::White.normal() | \* |
292+
| `date` | Color::White.normal() | \* |
293293
| `duration` | Color::White.normal() | \* |
294294
| `expression` | | |
295295
| `filesize` | Color::White.normal() | \* |
@@ -327,7 +327,7 @@ Here's a small example of changing some of these values.
327327
$env.config.color_config.separator = purple
328328
$env.config.color_config.leading_trailing_space_bg = "#ffffff"
329329
$env.config.color_config.header = gb
330-
$env.config.color_config.datetime = wd
330+
$env.config.color_config.date = wd
331331
$env.config.color_config.filesize = c
332332
$env.config.color_config.row_index = cb
333333
$env.config.color_config.bool = red
@@ -338,7 +338,7 @@ $env.config.color_config.float = red
338338
$env.config.color_config.string = white
339339
$env.config.color_config.nothing = red
340340
$env.config.color_config.binary = red
341-
$env.config.color_config.cell-path = cyan
341+
$env.config.color_config.cellpath = cyan
342342
$env.config.color_config.hints = dark_gray
343343
```
344344

@@ -352,7 +352,7 @@ $env.config.color_config.header = { # this is like PR #489
352352
bg: "#ffb900", # note, commas are not required, it could also be all on one line
353353
attr: bli # note, there are no quotes around this value. it works with or without quotes
354354
}
355-
$env.config.color_config.datetime = "#75507B"
355+
$env.config.color_config.date = "#75507B"
356356
$env.config.color_config.filesize = "#729fcf"
357357
$env.config.color_config.row_index = {
358358
# note, that this is another way to set only the foreground, no need to specify bg and attr
@@ -527,7 +527,7 @@ let base16_theme = {
527527
separator: $base03
528528
leading_trailing_space_bg: $base04
529529
header: $base0b
530-
datetime: $base0e
530+
date: $base0e
531531
filesize: $base0d
532532
row_index: $base0c
533533
bool: $base08
@@ -538,7 +538,7 @@ let base16_theme = {
538538
string: $base04
539539
nothing: $base08
540540
binary: $base08
541-
cell-path: $base08
541+
cellpath: $base08
542542
hints: dark_gray
543543
544544
# shape_garbage: { fg: $base07 bg: $base08 attr: b } # base16 white on red
@@ -564,19 +564,15 @@ let base16_theme = {
564564
565565
# now let's apply our regular config settings but also apply the "color_config:" theme that we specified above.
566566
567-
$env.config.animate_prompt: false
568567
$env.config.color_config: $base16_theme # <-- this is the theme
569568
$env.config.edit_mode: emacs # vi
570-
$env.config.filesize_format: "b" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, auto
571-
$env.config.filesize_metric: true
569+
$env.config.filesize.unit: metric
572570
$env.config.float_precision: 2
573571
$env.config.footer_mode: always #always, never, number_of_rows, auto
574-
$env.config.log_level: error
575-
$env.config.ls.use_ls_colors: true
576-
$env.config.max_history_size: 10000
577-
$env.config.table_mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
572+
$env.config.history.max_size: 10000
573+
$env.config.table.mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
578574
$env.config.use_ansi_coloring: true
579-
$env.config.use_grid_icons: true
575+
$env.config.use_ls_colors: true
580576
```
581577

582578
if you want to go full-tilt on theming, you'll want to theme all the items I mentioned at the very beginning, including LS_COLORS, and the prompt. Good luck!

0 commit comments

Comments
 (0)