diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-12 17:56:20 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-12 18:46:30 +0300 |
commit | 3a1f32c817f0b3f28afb9c87215a7502fe48864c (patch) | |
tree | f0d39eb5e19be1ebf6f3f53ceb83dfd2ae184e93 /jt.md | |
parent | 924fc1add2de3edac4ad4b1097a3bbbb73d0ad50 (diff) | |
download | jt2-3a1f32c817f0b3f28afb9c87215a7502fe48864c.tar.gz |
feat: add "new-topic" command and "new --topic" option
This makes it easier to have "topic pages" in a journal, for
collecting entries related to a certain topic. The topic page uses
ikiwiki's !inline directive to collect pages linking to it.
Diffstat (limited to 'jt.md')
-rw-r--r-- | jt.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -247,6 +247,32 @@ and draft 0 in jrnl contains "custom new entry template" This is a custom new entry template. ~~~ +## Use topic pages + +Verify that we can create a new topic page and a new entry referring +to that topic page. + +~~~scenario +given an installed jt + +when I run jt2 --dirname jrnl init default "My test journal" +then command is successful + +when I try to run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra" +then command fails +then stderr contains "foo" + +when I run jt2 --editor=none --dirname=jrnl new-topic foo "Things about Foo" +then command is successful +then file jrnl/foo.mdwn contains "Things about Foo" + +when I run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra" +then command is successful +and there is one draft in jrnl +and draft 0 in jrnl links to "foo" +~~~ + + # Colophon This document is meant to be processed with the [Subplot][] program to |