Matthias Beyer
6f16924514
Remove functionality to delete whole wiki
2018-04-18 14:32:09 +02:00
Matthias Beyer
816708a1aa
Add documentation for type
2018-04-16 10:53:23 +02:00
Matthias Beyer
8928f9cb94
Automatically create "index" and link new pages
2018-04-16 10:53:23 +02:00
Matthias Beyer
5e51a77b3f
Add logging output
2018-04-15 10:27:33 +02:00
Matthias Beyer
918d7a76b6
Add Wiki::delete_entry()
2018-04-15 10:27:09 +02:00
Matthias Beyer
2b8a83d9a7
Add entry getter function
2018-04-15 10:27:09 +02:00
Matthias Beyer
c242a362e4
Add id iterator
2018-04-15 10:27:09 +02:00
Matthias Beyer
bb0d4319c3
Initial import: libimagwiki
2018-04-15 10:27:09 +02:00
Matthias Beyer
fb4917d050
Remove feature to generate commandline completion scripts
2018-04-14 14:35:28 +02:00
Matthias Beyer
207346bea0
Add lints
2018-04-14 00:41:31 +02:00
Matthias Beyer
40b85f13b5
Add lints
2018-04-14 00:41:31 +02:00
Matthias Beyer
d02b298d5a
Add lints
2018-04-14 00:41:31 +02:00
Matthias Beyer
a40d90fef2
Add lints
2018-04-14 00:41:31 +02:00
Matthias Beyer
76c8443e50
Merge pull request #1395 from matthiasbeyer/clap-text-wrap
...
Clap text wrap
2018-04-13 22:46:09 +02:00
Matthias Beyer
3819dabff1
Remove attribute
...
This fixes a crash with the (beta) compiler rustc 1.26.
2018-04-13 16:41:42 +02:00
Matthias Beyer
aeec10bf76
Use clap with wrap_help feature
2018-04-13 16:19:10 +02:00
Matthias Beyer
b59c234588
Use clap "^2.29" instead of ">=2.29"
2018-04-13 16:17:43 +02:00
Matthias Beyer
00b6f4ded3
Merge pull request #1394 from matthiasbeyer/libimagentryref/fix-path-when-making-ref
...
Fix: Pass the right path variable here
2018-04-13 15:54:38 +02:00
Matthias Beyer
731b97cccb
Fix: Pass the right path variable here
...
The ref library passed the wrong variable as path which caused the
setting in the entries to be wrong.
This patch fixes this.
2018-04-13 14:06:15 +02:00
Matthias Beyer
ae5c4cf9ba
Fix: view entries sorted
2018-04-13 13:41:02 +02:00
Matthias Beyer
c27dc79afe
Merge pull request #1383 from matthiasbeyer/libimagrt/handler-exit-if-subcommand-not-found
...
libimagrt: Exit if handler does not find subcommand
2018-04-08 22:21:19 +02:00
Matthias Beyer
16a76f6213
Exit if handler does not find subcommand
2018-04-08 20:38:46 +02:00
Matthias Beyer
c5c9c7b9ba
Fix: Editor commands should be split at whitespace
...
This fixes the following problem:
If the editor setting was "vim " instead of "vim", the editor was called
with `"vim" " "`, which resulted in unexpected behaviour.
The patch fixes this.
2018-04-08 20:28:11 +02:00
Matthias Beyer
a769186cd7
Make iterator lifetimes less restricting
2018-04-07 13:55:54 +02:00
Matthias Beyer
93195b3bad
Default clap app builder: Allow external subcommands
2018-04-04 19:34:13 +02:00
Matthias Beyer
cb8b5a0cf6
Add helper for handling unknown subcommands
2018-04-03 18:23:01 +02:00
Matthias Beyer
e61ccc9561
Fix: Entry::to_str() should return Result<_>
...
Because serializing might fail.
Also fixes all usages of the API.
2018-03-26 14:24:42 +02:00
Matthias Beyer
7429754665
Rewrite edit_in_tmpfile() for new Runtime::editor() signature
2018-03-23 23:55:11 +01:00
Matthias Beyer
ea38f2ffbf
Fix: Pass /dev/tty as stdin for editor
...
This fixes the issue that spawning the editor trashes the terminal.
The signature of the Runtime::editor() function changed, which has to be
fixed in using code.
2018-03-23 23:55:06 +01:00
Matthias Beyer
13af364b76
Add header editing support
2018-03-23 17:16:40 +01:00
Matthias Beyer
9e0d0d9f6c
Add Entry::replace_from_buffer()
2018-03-23 15:44:34 +01:00
Matthias Beyer
aa32dd1ec2
Add debugging output if kairos fails to parse input
2018-03-23 10:05:58 +01:00
Matthias Beyer
6f33e4e322
Add debug output
2018-03-23 10:05:58 +01:00
Matthias Beyer
bcdbb8197a
Use "ui" module in libimagtimeui
2018-03-23 10:05:58 +01:00
Matthias Beyer
7e623f39b8
Add message why panic
...
So we see that when grepping the source for `unimplemented!()`.
2018-03-23 10:05:58 +01:00
Matthias Beyer
835c003491
Merge pull request #1360 from matthiasbeyer/libimaghabit/create-vs-retrieve
...
Fix: Use retrieve in retrieve variant
2018-03-23 10:03:52 +01:00
Matthias Beyer
96f4f93ed0
Merge pull request #1356 from matthiasbeyer/libimaghabit/link-new-instances
...
Fix: libimaghabit::habit::HabitTemplate should link created instances…
2018-03-23 10:03:44 +01:00
Matthias Beyer
c39a1f82e2
Merge pull request #1355 from matthiasbeyer/libimagstore/create-semantic-fix
...
Fix: Store::create() should fail if the entry exists
2018-03-22 22:04:29 +01:00
Matthias Beyer
30233456df
Fix: Use retrieve in retrieve variant
2018-03-22 21:34:00 +01:00
Matthias Beyer
b62d7eab85
Fix: libimaghabit::habit::HabitTemplate should link created instances to the template
2018-03-22 21:32:58 +01:00
Matthias Beyer
c857f97287
Merge pull request #1357 from matthiasbeyer/libimaghabit/create-vs-retrieve
...
Libimaghabit/create vs retrieve
2018-03-22 21:20:26 +01:00
Matthias Beyer
41f7bab1c5
Fix: Store::create() should fail if the entry exists
2018-03-22 21:16:11 +01:00
Matthias Beyer
e4fc2e8010
Merge pull request #1354 from matthiasbeyer/libimaghabit/check-is-done-for-date
...
Add helper to check whether an instance exists for a date
2018-03-22 14:36:32 +01:00
Matthias Beyer
247b9499a7
Refactor for less verbose code
2018-03-22 14:00:10 +01:00
Matthias Beyer
2232f0153f
Dedup code
2018-03-22 13:54:15 +01:00
Matthias Beyer
964b168f18
Add "retrieve" variants for retrieving instances
...
and fix create implementation to use `Store::create()`, which did the
wrong thing.
2018-03-22 13:51:12 +01:00
Matthias Beyer
45fdeb4e18
Add helper to check whether an instance exists for a date
2018-03-22 13:44:41 +01:00
Matthias Beyer
3d7be3a1e0
Merge pull request #1349 from matthiasbeyer/libimagentryref/fixes
...
Fix: Allocating of buffer does not work as expected with Vec::with_ca…
2018-03-21 18:04:37 +01:00
Matthias Beyer
d2eb4936b1
Fix: Allocating of buffer does not work as expected with Vec::with_capacity()
2018-03-20 16:51:19 +01:00
Matthias Beyer
5ceeacd6c8
Provide Ref::make_ref() for making a ref out of an existing entry
2018-03-19 14:18:02 +01:00