path: root/src/vars.c
diff options
authorLars Henriksen <LarsHenriksen@get2net.dk>2018-12-28 09:55:16 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-05-22 01:56:59 -0400
commit80ce812effec8190bfbb1986dced1b143162a4c8 (patch)
tree2c1087f0754b5d186273766440a5435c8f947ec9 /src/vars.c
parent0bb4a59b5fb089062f0eb369d39289ff1ccfc2ba (diff)
Add configuration variables for multiple days
The number of days displayed in the APP panel has been made configurable, maximum 21 days, default seven days. With several days in the APP panel, it may be desirable to "squeeze" the entries by leaving out the final empty line of each appointment and lower the number of lines between consecutive days (0, 1, or 2). Both are made general configuration options. To make a uniform display, an empty line is added to a day without appointments, if appointments have an empty line. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/vars.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vars.c b/src/vars.c
index 80e8e5c..d3080eb 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -122,6 +122,9 @@ void vars_init(void)
/* Variables for user configuration */
conf.cal_view = CAL_MONTH_VIEW;
conf.todo_view = TODO_HIDE_COMPLETED_VIEW;
+ conf.empty_appt_line = 1;
+ conf.multiple_days = 7;
+ conf.dayseparator = 2;
conf.confirm_quit = 1;
conf.confirm_delete = 1;
conf.auto_save = 1;