Skip to content

Commit

Permalink
add the "title header" feature, but don't document it yet
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Dec 3, 2024
1 parent 5d3aba3 commit 09f9a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/jimmy_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion test/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("."),
Expand Down Expand Up @@ -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."""

Expand Down

0 comments on commit 09f9a88

Please sign in to comment.