diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-15 20:26:52 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-15 20:26:52 +0300 |
commit | 077dd667659cc1e579977d1cca0d4fe6934b6dad (patch) | |
tree | 62f7889a648d1b5dbe5a95ca9da320e75d73cf30 /jt.md | |
parent | c1eb3cbc47d65e5f4e7c92e0c039c7206911cb73 (diff) | |
download | jt2-077dd667659cc1e579977d1cca0d4fe6934b6dad.tar.gz |
fix: allow topic pages to contain dots
Previously, a topic of lars.wirzenius would be stored in lars.mdwn,
which is wrong. Now it's stored in lars.wirzenius.mdwn.
Sponsored-by: author
Diffstat (limited to 'jt.md')
-rw-r--r-- | jt.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -310,19 +310,19 @@ given an installed jt when I run jt --dirname jrnl init default "My test journal" then command is successful -when I try to run jt --editor=none --dirname=jrnl new --topic foo "Abracadabra" +when I try to run jt --editor=none --dirname=jrnl new --topic foo.bar "Abracadabra" then command fails -then stderr contains "foo" +then stderr contains "foo.bar" -when I run jt --editor=none --dirname=jrnl new-topic foo "Things about Foo" +when I run jt --editor=none --dirname=jrnl new-topic foo.bar "Things about Foobars" then command is successful -then file jrnl/foo.mdwn contains "Things about Foo" +then file jrnl/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 "Abracadabra" +when I run jt --editor=none --dirname=jrnl new --topic foo.bar "Abracadabra" then command is successful and there is one draft in jrnl -and draft 0 in jrnl links to "foo" +and draft 0 in jrnl links to "foo.bar" ~~~ |