Commit Graph

371 Commits

Author SHA1 Message Date
Leon Schuermann cb69214e72 imag-bookmark: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Matthias Beyer f1ec71431e Implement show subcommand
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer d40bf2956f Make helper type derive Debug
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer d201797b98 Add argument to only list events after a certain date
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer d9ac0c0b07 Add argument to only list events before a certain date
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer 9801a3c295 Add helper function to parse string with kairos
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer 81c6ee8314 Rewrite helper to be less complicated
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer 3da1d9e1d9 Refactor to use new helper function
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
Matthias Beyer 92a0713ed0 Add filtering for past events
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:43 +02:00
Matthias Beyer 14dc03f40f Enhance listing functionality with handlebars templating
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:26 +02:00
Matthias Beyer 8dbb2f1590 Add basic listing functionality
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
Matthias Beyer 61f71d67cc Add example ref configuration for calendar
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
Matthias Beyer 2e6df0e458 Add imag-calendar
This patch adds a imag-calendar command which features only a "import"
command by now.

This can be used to import calendar entries (events) to imag.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
Matthias Beyer 5edb470a5f Update dependency: handlebars: 1.1.0 -> 2 2019-10-07 18:18:28 +02:00
flip1995 e2216db41d Allow some Clippy lints
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 daddea7adf [No-auto] bin/domain/timetrack: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 4529ebf216 [No-auto] bin/domain/notes: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 3036d87402 [No-auto] bin/domain/mail: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 009539dfd3 [No-auto] bin/domain/log: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 3b941f23e3 [No-auto] bin/domain/habit: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 1bb6f452e9 [No-auto] bin/domain/diary: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 397bcd43d0 [No-auto] bin/domain/contact: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 7a97c02584 [No-auto] bin/domain/bookmark: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995 8562065bea [Auto] bin/core/wiki: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 e32d82f915 [Auto] bin/core/todo: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 f7f95a651f [Auto] bin/core/timetrack: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 e0e4d4e720 [Auto] bin/core/notes: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 419a5ffa77 [Auto] bin/core/mail: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 a02883511b [Auto] bin/core/log: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 c9c7439f92 [Auto] bin/core/habit: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 171757f5ca [Auto] bin/core/diary: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 5b4b699875 [Auto] bin/core/contact: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995 3963e5ec2d [Auto] bin/core/bookmark: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
Matthias Beyer b3eb37dde8 Fix: imag-log should report touched entries 2019-08-25 12:55:45 +02:00
Matthias Beyer 605b98276d Run "cargo fix --all-features" in root of project
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-25 12:17:07 +02:00
flip1995 aa23fb485c Fix match same arms bug found by clippy
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:05:09 +02:00
Matthias Beyer 6ac6db57d1 Add imag-timetrack shell
This patch adds a subcommand to imag-timetrack which allows a user to
start a $SHELL and start a timetracking with it and as soon as the shell
exits, the timetracking is stopped.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 20:32:33 +02:00
Matthias Beyer d5fd773da8 Change imag-wiki interface to be consistent with other commands
Use "list" instead of "ids" for listing ids in a wiki.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 19:59:01 +02:00
Matthias Beyer 1196f5395d Add debug output
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 19:53:41 +02:00
Matthias Beyer 03fec5f4db List diaries only if output is not a pipe
Beforehand, this command:

    imag diary -d foo list | cat

listed each entry twice because the reporting feature of libimagrt
forwarded the list to stdout and the normal output was written to
stderr.

With this patch, we get the output only once in this case.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-21 10:42:27 +02:00
Matthias Beyer ce9fb3c370 Fix for update to latest itertools
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-14 12:07:41 +02:00
Matthias Beyer be0436064c Remove uneccessary call to iter()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 19:47:28 +02:00
Matthias Beyer 2185d44011 Update all dependencies
This patch updates all dependencies but not "nom".

Done with `cargo upgrade --all` and manual editing.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 16:44:23 +02:00
Matthias Beyer 6b8c236b67 Merge branch 'libimaghabit-dont-copy-comment-to-instance' into master 2019-06-30 13:14:36 +02:00
Matthias Beyer a9bde370a3 Merge branch 'imag-log-show-multiple-sort-by-date' into master 2019-06-30 13:14:24 +02:00
Matthias Beyer 62d6b54542 Adapt imag-habit impl for `HabitInstance::get_comment()`
The implementation of `HabitInstance::get_comment()` was changed and
therefore its semantics were changed.

This patch adapts the call to the function for the new signature and
implications.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:31:56 +02:00
Matthias Beyer 82c2beafbb Add "done" marker in "list" output
This patch adds a marker in the table when using the "list" command
which marks when the task is already done for the list entry.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:09:18 +02:00
Matthias Beyer 32c5ec1e00 Fix: Sort by date, not by id
This patch fixes a bug. We stated in the helptext of the "show" command
that when showing several logs, we sort by date. This was not true as we
sorted by Id, which also included the name of the log, hence we
effectively sorted by name.

This patch fixes that. Output is not sorted by date.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 10:57:21 +02:00
Matthias Beyer 99da4b777a Rename module: timetrackingstore -> store 2019-06-26 20:27:06 +02:00
Matthias Beyer 34d5a3d62c Add option to imag-log to ignore newlines
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-26 20:26:59 +02:00