From 09f9a8890660bde43d96a2b0300eab4d5a07cfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B6rfelt?= Date: Tue, 3 Dec 2024 19:54:22 +0100 Subject: [PATCH] add the "title header" feature, but don't document it yet --- src/jimmy_cli.py | 6 ++++++ test/test_convert.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jimmy_cli.py b/src/jimmy_cli.py index b959223d..26e7b959 100644 --- a/src/jimmy_cli.py +++ b/src/jimmy_cli.py @@ -64,6 +64,12 @@ def main(): choices=(None, "all", "joplin", "obsidian", "qownnotes"), help="Frontmatter type.", ) + # TODO: test and document + parser.add_argument( + "--title-as-header", + action="store_true", + help="Add the title as header in the first row.", + ) parser.add_argument( "--output-folder", type=Path, diff --git a/test/test_convert.py b/test/test_convert.py index 7fda272c..7752d5e7 100644 --- a/test/test_convert.py +++ b/test/test_convert.py @@ -35,6 +35,7 @@ def setUp(self): self.config = SimpleNamespace( format=None, password=password, + title_as_header=False, frontmatter=None, global_resource_folder=None, local_resource_folder=Path("."), @@ -225,7 +226,7 @@ def test_default_format(self, test_name, test_input): reference = reference_data.parent / (reference_data.name + f" {index}") self.assert_dir_trees_equal(actual_data, reference) - @parameterized.expand(["all", "joplin", "obsidian"]) + @parameterized.expand(["all", "joplin", "obsidian"]) # TODO: qownnotes def test_frontmatter(self, frontmatter): """Test the frontmatter generation."""