summaryrefslogtreecommitdiff
path: root/jt.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-23 09:42:32 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-23 09:42:32 +0300
commitc88ef5bf4c78d8c06b81e35f2806d280bbcca479 (patch)
tree440bb310e355282b279bfe802f5170a9e9f5dc7b /jt.md
parentb8e537e103d540a6d8dbb540676147ea2a88b89d (diff)
downloadjt2-c88ef5bf4c78d8c06b81e35f2806d280bbcca479.tar.gz
fix: if a topic path contains missing directories, create them
Sponsored-by: author
Diffstat (limited to 'jt.md')
-rw-r--r--jt.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/jt.md b/jt.md
index 7265724..0ffcc2d 100644
--- a/jt.md
+++ b/jt.md
@@ -312,15 +312,15 @@ when I try to run jt --editor=none --dirname=jrnl new --topic foo.bar "Abracadab
then command fails
then stderr contains "foo.bar"
-when I run jt --editor=none --dirname=jrnl new-topic foo.bar "Things about Foobars"
+when I run jt --editor=none --dirname=jrnl new-topic topics/foo.bar "Things about Foobars"
then command is successful
-then file jrnl/foo.bar.mdwn contains "Things about Foobars"
+then file jrnl/topics/foo.bar.mdwn contains "Things about Foobars"
then there are no uncommitted changes in jrnl
-when I run jt --editor=none --dirname=jrnl new --topic foo.bar "Abracadabra"
+when I run jt --editor=none --dirname=jrnl new --topic topics/foo.bar "Abracadabra"
then command is successful
and there is one draft in jrnl
-and draft 0 in jrnl links to "foo.bar"
+and draft 0 in jrnl links to "topics/foo.bar"
~~~