commit - 819e1bfb9a1d46cf4e1fc9f560713bdd79163a76
commit + 23c83efeddb81ce5725ac480efbd22c609229316
blob - c852e4dd43b13cacbb8d2352acab3f93d8cd00bd
blob + 25f459c0dc3c4395dc31d21f22a9cf7f1f46271f
--- ChangeLog
+++ ChangeLog
+2021-07-19 Omar Polo <op@omarpolo.com>
+
+ * defaults.c (line_prefixes): prettify the default settings
+
2021-07-18 Omar Polo <op@omarpolo.com>
* wrap.c (push_line): visually drop trailing spaces when formatting a page
blob - e81aa0482caea616b57cf57e2d73ca1be5c34f9d
blob + e46a362c97d9a10cb14ba7d4679a8c1e6e47497b
--- contrib/README.md
+++ contrib/README.md
# Contrib
+ - `brutalist.config`: a brutalist theme
- `light.config`: an opinionated theme for light terminals. Load it
with `telescope -c contrib/light.config` or copy it to
`~/.telescope/config`
blob - /dev/null
blob + 5b448520462685783efb78f7c003828884af5012 (mode 644)
--- /dev/null
+++ contrib/brutalist.config
+style line.link prefix "=> " " "
+style line.title1 prefix "# " " "
+style line.title2 prefix "## " " "
+style line.title3 prefix "### " " "
+style line.item prefix "* " " "
+style line.quote prefix "> " " "
+style line.pre.start prefix "``` " " "
+style line.pre.end prefix "```" "```"
blob - e76d1441557c908108ec337a1ca25e2a2817750b
blob + a37db85c59cb15137cf4347e52157d42540c183b
--- defaults.c
+++ defaults.c
struct lineprefix line_prefixes[] = {
[LINE_TEXT] = { "", "" },
- [LINE_LINK] = { "=> ", " " },
+ [LINE_LINK] = { "→ ", " " },
[LINE_TITLE_1] = { "# ", " " },
[LINE_TITLE_2] = { "## ", " " },
[LINE_TITLE_3] = { "### ", " " },
- [LINE_ITEM] = { "* ", " " },
- [LINE_QUOTE] = { "> ", " " },
- [LINE_PRE_START] = { "```", " " },
+ [LINE_ITEM] = { " • ", " " },
+ [LINE_QUOTE] = { " ┃ ", " ┃ " },
+ [LINE_PRE_START] = { "─── ", " " },
[LINE_PRE_CONTENT] = { "", "" },
- [LINE_PRE_END] = { "```", "```" },
+ [LINE_PRE_END] = { "─── ", "" },
[LINE_COMPL] = {"", ""},
[LINE_COMPL_CURRENT] = {"", ""},
.prfx_pair = PL_PRFX,
.pair = PL,
.trail_pair = PL_TRAIL,
+ .attr = A_UNDERLINE,
},
[LINE_TITLE_1] = {
.prfx_pair = PT1_PRFX,