summaryrefslogtreecommitdiffstats
path: root/examples/hn-tui.toml
blob: c7a608ce55a6c388a4bcf766a7d082de0adbe2ac (plain)
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
# Example configuration file

# ---------------------------------
# general
# ---------------------------------

use_page_scrolling = true
use_pacman_loading = true
url_open_command = { command = "open", options = [] }
article_parse_command = { command = "article_md", options = [ "--format", "html" ] }
client_timeout = 32

# ---------------------------------
# theme
# ---------------------------------

[theme.palette]
background = "#f6f6ef"
foreground = "#242424"
selection_background = "#d8dad6"
selection_foreground = "#4a4c4c"
black = "#000000"
blue = "#0000aa"
cyan = "#00aaaa"
green = "#00aa00"
magenta = "#aa00aa"
red = "#aa0000"
white = "#aaaaaa"
yellow = "#aaaa00"
light_black = "#555555"
light_white = "#ffffff"
light_red = "#ff5555"
light_magenta = "#5555ff"
light_green = "#55ff55"
light_cyan = "#55ffff"
light_blue = "#5555ff"
light_yellow = "#ffff55"

[theme.component_style]
title_bar = { back = "#ff6600", effect = "bold" }
matched_highlight = { front = "black", back = "#ffff55"}
metadata = { front = "#828282" }
username = { effect = "bold" }
loading_bar = { front = "light yellow", back = "blue"}
header = { front = "black", effect = "bold" }
quote = { front = "#677280" }
italic = { effect = "italic" }
bold = { effect = "bold" }
single_code_block = { front = "black", back = "#c8c8c8"}
multiline_code_block = { front = "light black", effect = "bold" }
link = { front = "#4fbbfd" }
link_id = { front = "black", back = "#ffff55"}
current_story_tag = { front = "light white" }
ask_hn = { front = "red", effect = "bold" }
tell_hn = { front = "yellow", effect = "bold" }
show_hn = { front = "blue", effect = "bold" }
launch_hn = { front = "green", effect = "bold" }

# ---------------------------------
# keymap
# ---------------------------------

[keymap.global_keymap]
open_help_dialog = "?"
quit = "C-q"
close_dialog = "esc"
goto_previous_view = "C-p"
goto_search_view = "C-s"
goto_front_page_view = "f1"
goto_all_stories_view = "f2"
goto_ask_hn_view = "f3"
goto_show_hn_view = "f4"
goto_jobs_view = "f5"

[keymap.edit_keymap]
move_cursor_left = "left"
move_cursor_right = "right"
move_cursor_to_begin = "home"
move_cursor_to_end = "end"
backward_delete_char = "backspace"

[keymap.story_view_keymap]
next_story = "j"
prev_story = "k"
goto_story = "g"
next_page = "n"
prev_page = "p"
toggle_sort_by_date = "d"
open_article_in_browser = "o"
open_article_in_article_view = "O"
open_story_in_browser = "s"
goto_story_comment_view = "enter"
next_story_tag = "l"
prev_story_tag = "h"

[keymap.search_view_keymap]
to_navigation_mode = "esc"
to_search_mode = "i"

[keymap.comment_view_keymap]
next_comment = "j"
prev_comment = "k"
next_top_level_comment = "n"
prev_top_level_comment = "p"
next_leq_level_comment = "l"
prev_leq_level_comment = "h"
parent_comment = "u"
down = "down"
up = "up"
page_down = "page_down"
page_up = "page_up"
open_comment_in_browser = "c"
open_link_in_browser = "f"
open_link_in_article_view = "F"
toggle_collapse_comment = "tab"

[keymap.article_view_keymap]
down = "j"
up = "k"
page_down = "d"
page_up = "u"
top = "g"
bottom = "G"
open_story_in_browser = "s"
open_article_in_browser = "o"
open_article_in_browser = "o"
open_article_in_article_view = "O"
open_link_in_browser = "f"
open_link_in_article_view = "F"
open_link_dialog = "l"
link_dialog_focus_next = "j"
link_dialog_focus_prev = "k"

# ---------------------
# custom keymap
# ---------------------

# [[keymap.custom_keymaps]]
# key = "M-1"
# tag = "story"
# by_date = false
# [keymap.custom_keymaps.numeric_filters]
# elapsed_days_interval = {start = 0, end = 3} # stories posted between now and 3 days ago
# points_interval = {start = 10} # stories with points >= 10
# num_comments_interval = {}
#
# [[keymap.custom_keymaps]]
# key = "M-2"
# tag = "show_hn"
# by_date = true
# [keymap.custom_keymaps.numeric_filters]
# elapsed_days_interval = {}
# points_interval = {start = 50, end = 200}
# num_comments_interval = {end = 100}