summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-06-06chore: drop unnecessary closurecleanupsLars Wirzenius1-1/+1
Sponsored-by: author
2021-06-04Merge branch 'ci' into 'main'Daniel Silverstone7-616/+26
build: add rudimentary .gitlab-ci.yml file to test GitLab CI See merge request larswirzenius/jt!18
2021-06-04build: add rudimentary .gitlab-ci.yml file to test GitLab CILars Wirzenius7-616/+26
This uses the Rust Docker image from Docker Hub, and installs Subplot and other tools into that, before it runs jt's ./check script. Installing all the tools takes a fair bit of time, as does building jt every time. These could and should be improved later. Sponsored-by: author
2021-05-23Merge branch 'fixes' into 'main'Lars Wirzenius5-17/+15
chore: fix clippy warnings, use new Subplot binary name See merge request larswirzenius/jt!17
2021-05-23chore: fix clippy warnings, use new Subplot binary nameLars Wirzenius5-17/+15
2021-05-22Merge branch 'defaults' into 'main'Daniel Silverstone1-2/+1
docs: remove from templates mention they're the default ones Closes #15 See merge request larswirzenius/jt!16
2021-05-22Merge branch 'commit' into 'main'Daniel Silverstone7-0/+125
feat: make a journal a git repository and commit new entries Closes #9 See merge request larswirzenius/jt!15
2021-05-19docs: remove from templates mention they're the default onesLars Wirzenius1-2/+1
2021-04-29feat: make a journal a git repository and commit new entriesLars Wirzenius7-0/+125
2021-04-22Merge branch 'main-func' into 'main'Daniel Silverstone1-1/+11
refactor: explicitly print error in main, don't return Result Closes #14 See merge request larswirzenius/jt!14
2021-04-22refactor: explicitly print error in main, don't return ResultLars Wirzenius1-1/+11
2021-04-22Merge branch 'refactor-cli' into 'main'Daniel Silverstone4-90/+126
refactor: move subcommand implementations into src/cmd.rs See merge request larswirzenius/jt!13
2021-04-21refactor: move subcommand implementations into src/cmd.rsLars Wirzenius4-90/+126
The command line interface definition (for structopt) and implementation are now both in src/cmd.rs. This seems tidier than having them split between src/opt.rs and src/bin/jt2.rs.
2021-04-12Merge branch 'topics' into 'main'Daniel Silverstone8-8/+118
feat: add "new-topic" command and "new --topic" option Closes #13 See merge request larswirzenius/jt!12
2021-04-12feat: add "new-topic" command and "new --topic" optionLars Wirzenius8-8/+118
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.
2021-04-08Merge branch 'tera' into 'main'Daniel Silverstone7-20/+396
feat! add support for tera templates for new journal entries Closes #8 and #10 See merge request larswirzenius/jt!11
2021-04-08refactor: sort dependencies in Cargo.toml in alphabetical orderLars Wirzenius2-16/+16
2021-04-08feat: add a timestamp to the default templateLars Wirzenius3-1/+10
2021-04-08feat! add support for tera templates for new journal entriesLars Wirzenius7-3/+370
There is a hardcoded default template, plus one can be overridden per journal by adding a .config/templates/new_entry file in the journal.
2021-04-06Merge branch 'no-anyhow-in-lib' into 'main'Daniel Silverstone2-8/+22
refactor: use Result<_, JournalError> instead of anyhow::Result See merge request larswirzenius/jt!10
2021-04-05refactor: use Result<_, JournalError> instead of anyhow::ResultLars Wirzenius2-8/+22
2021-04-03Merge branch 'config' into 'main'Daniel Silverstone8-46/+115
feat: allow setting name of directory where new entries go See merge request larswirzenius/jt!9
2021-04-03feat: allow setting name of directory where new entries goLars Wirzenius7-38/+85
Also, some refactoring that happened along the way.
2021-04-03feat: launch editor for new draftLars Wirzenius2-7/+29
2021-04-03fix: read config.yaml in default config dir, not the dir itselfLars Wirzenius1-1/+1
2021-04-02Merge branch 'easter' into 'main'Daniel Silverstone18-46/+367
Debian packager and multi-draft support Closes #6 and #5 See merge request larswirzenius/jt!8
2021-04-02feat! support multiple draftsLars Wirzenius10-46/+287
This changes the command line syntax: subcommands edit and finish now require the draft id. We can change this later so that if there is only one draft, the program picks that one automatically. Also, new entries are 0.md, 1.md, etc, which is not going to be acceptable for real use, but this works minimally.
2021-04-02docs: add colophon to subplotLars Wirzenius1-0/+9
2021-04-02build: add Debian packagingLars Wirzenius7-0/+70
2021-04-02fix: if ./check gets -v, don't pass it onto test.pyLars Wirzenius1-0/+1
2021-03-26Merge branch 'cli' into 'main'Daniel Silverstone16-197/+834
feat! rewrite code Closes #3 See merge request larswirzenius/jt!7
2021-03-26feat! rewrite codeLars Wirzenius16-197/+834
This started out as a change to re-do the command line parsing. I ended up rewriting everything, and failed to do it in a way that could be rebased into a sensible series of small commits.
2021-01-22Merge branch 'chore' into 'main'Daniel Silverstone1-0/+1
fix: add missing "template" to subplot YAML metadata See merge request larswirzenius/jt!6
2021-01-22fix: add missing "template" to subplot YAML metadataLars Wirzenius1-0/+1
2020-11-16Merge branch 'edit' into 'master'Daniel Silverstone8-39/+201
Edit Closes #4 See merge request larswirzenius/jt!5
2020-11-16feat: add "jt edit" to edit a draft with a chosen editorLars Wirzenius6-9/+183
Also, add some debugging log statements that were needed while making this change.
2020-11-14chore: update vendored copy of runcmd.py from SubplotLars Wirzenius1-0/+9
We need a bug fix from there for passing in env to runcmd_run.
2020-11-14test: make ./check clearer by making it less genericLars Wirzenius1-30/+9
2020-10-26Merge branch 'edit' into 'master'Daniel Silverstone4-0/+185
feat: create new draft, publish it Closes #2 See merge request larswirzenius/jt!4
2020-10-20feat: create new draft, publish itLars Wirzenius4-0/+185
2020-10-12Merge branch 'subplot' into 'master'Daniel Silverstone7-106/+348
Port jt to use current runcmd from Subplot See merge request larswirzenius/jt!3
2020-10-09fix(subplot/jt.py): get global symbols via global()Lars Wirzenius1-0/+6
This is to make jt.py be lintable on its own. The symbols are available in the generated test program, when jt.py gets embedded within that, but linters don't know about that.
2020-10-09chore: update vendored copy of runcmd library from SubplotLars Wirzenius5-93/+329
Since the library interface has change, make relevant changes elsewhere.
2020-10-09refactor: move Subplot bindings, functions files to subplot/Lars Wirzenius5-4/+4
This makes the source tree a little cleaner, I find.
2020-09-12Merge branch 'init' into 'master'Daniel Silverstone11-1/+550
feat: create and initialise a new journal Closes #1 See merge request larswirzenius/jt!2
2020-09-12Apply 1 suggestion(s) to 1 file(s)Lars Wirzenius1-1/+1
2020-09-05feat: create and initialise a new journalLars Wirzenius11-1/+550
At the moment this only creates a new directory, but most of the change is scaffolding so that more interesting changes can be built on top of this later.
2020-07-17Merge branch 'intro' into 'master'Daniel Silverstone1-0/+33
doc: write introduction to a jt subplot See merge request larswirzenius/jt!1
2020-07-13doc: write introduction to a jt subplotLars Wirzenius1-0/+33
2020-06-08doc: add subplot as a placeholderLars Wirzenius1-0/+6