From cd2abc7132a5b719b6d72e93708cd776dcb4841a Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 25 Sep 2021 13:21:15 -0400 Subject: [PATCH] Replace references to monthsperline with calendar.monthsperline --- doc/man/taskrc.5.in | 2 +- src/Context.cpp | 2 +- src/commands/CmdShow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/man/taskrc.5.in b/doc/man/taskrc.5.in index c7c4f6b50..35700aea6 100644 --- a/doc/man/taskrc.5.in +++ b/doc/man/taskrc.5.in @@ -739,7 +739,7 @@ turned off by setting the variable to none. The default value is "none". Determines whether the calendar legend is displayed. The default value is "1". .TP -.B monthsperline=N +.B calendar.monthsperline=N Determines how many months the "task calendar" command renders across the screen. Defaults to however many will fit. If more months than will fit are specified, Taskwarrior will only show as many that will fit. diff --git a/src/Context.cpp b/src/Context.cpp index 5467cf457..321ffd8db 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -131,7 +131,7 @@ std::string configurationDefaults = "calendar.offset=0 # Apply an offset value to control the first month of the calendar\n" "calendar.offset.value=-1 # The number of months the first month of the calendar is moved\n" "calendar.holidays=none # Show public holidays on calendar:full, sparse or none\n" - "#monthsperline=3 # Number of calendar months on a line\n" + "#calendar.monthsperline=3 # Number of calendar months on a line\n" "\n" "# Journal controls\n" "journal.time=0 # Record start/stop commands as annotation\n" diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index 823358f85..b58aebc80 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -85,6 +85,7 @@ int CmdShow::execute (std::string& output) " calendar.details.report" " calendar.holidays" " calendar.legend" + " calendar.monthsperline" " calendar.offset" " calendar.offset.value" " color" @@ -175,7 +176,6 @@ int CmdShow::execute (std::string& output) " list.all.projects" " list.all.tags" " locking" - " monthsperline" " nag" " obfuscate" " print.empty.columns"