summaryrefslogtreecommitdiff
path: root/jt.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-07-22 19:41:05 +0300
committerLars Wirzenius <liw@liw.fi>2023-07-22 19:41:05 +0300
commit4b5a465e91a9657f5321b77f684d5b0322660920 (patch)
treedf926ded028b2731925595b20dab286a0141539d /jt.md
parente62bc1b23c83f437b254427c75e90c7b6ab49e93 (diff)
downloadjt2-4b5a465e91a9657f5321b77f684d5b0322660920.tar.gz
feat: allow any number of topics for a post
Sponsored-by: author
Diffstat (limited to 'jt.md')
-rw-r--r--jt.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/jt.md b/jt.md
index 8972d73..ca4f108 100644
--- a/jt.md
+++ b/jt.md
@@ -309,6 +309,26 @@ and there is one draft in jrnl
and draft 0 in jrnl links to "topics/foo.bar"
~~~
+## Allow many topics per post
+
+Sometimes a post relates to several topics.
+
+~~~scenario
+given an installed jt
+
+when I run jt --dirname jrnl init default "My test journal"
+then command is successful
+
+when I run jt --editor=none --dirname=jrnl new-topic topics/foo "Foo"
+when I run jt --editor=none --dirname=jrnl new-topic topics/bar "Bar"
+
+when I run jt --editor=none --dirname=jrnl new --topic topics/foo --topic topics/bar "Abracadabra"
+then command is successful
+then there is one draft in jrnl
+then draft 0 in jrnl links to "topics/foo"
+then draft 0 in jrnl links to "topics/bar"
+~~~
+
# Colophon