Skip to content

Commit edf6e22

Browse files
committed
Add some conf vars
1 parent ed54bd9 commit edf6e22

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/logplot/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44

55

66
General = namedtuple(
7-
"General", ["log_open_cmd", "default_entry_style", "click_hit_tolerance", "shell"]
7+
"General",
8+
[
9+
"log_open_cmd",
10+
"default_entry_style",
11+
"click_hit_tolerance",
12+
"shell",
13+
"plot_title",
14+
"x_axis_name",
15+
"y_axis_name",
16+
],
817
)
918
General.__new__.__defaults__ = (None,) * len(General._fields)
1019

src/logplot/default_conf.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ general:
33
shell: false # boolean given to as shell argument to subprocess function calls (e.g Popen)
44
default_entry_style: '-o'
55
click_hit_tolerance: 5
6+
7+
plot_title: 'Magical Log Plot'
8+
x_axis_name: 'value'
9+
y_axis_name: 'line number'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[["default-command", null, null, null], [["ID1", 1, null, true], ["ID2", 2, null, null], ["ID3", 3, null, null]], []]
1+
[["default-command", null, null, null, null, null, null], [["ID1", 1, null, true], ["ID2", 2, null, null], ["ID3", 3, null, null]], []]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[["overridden command {line_number}", null, null, null], [["ID1", 1, null, null], ["ID2", 2, null, null], ["ID3", 3, null, null]], []]
1+
[["overridden command {line_number}", null, null, null, null, null, null], [["ID1", 1, null, null], ["ID2", 2, null, null], ["ID3", 3, null, null]], []]

0 commit comments

Comments
 (0)