Commit Graph

403 Commits

Author SHA1 Message Date
Matthias Beyer 48943aa932 Merge branch 'imag-bookmark-remove-collections' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-08 14:27:51 +01:00
Matthias Beyer 401e900936 Implement imag-bookmark "find" command
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-08 14:00:32 +01:00
Matthias Beyer 4f2ea236af Reimplement imag-bookmark commandline frontend
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-08 13:48:47 +01:00
Matthias Beyer 17d2e55bfa Merge branch 'imag-mail/main-return-result' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 17:22:33 +01:00
Matthias Beyer 6f53964dc0 Merge branch 'imag-contact/main-return-result' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 17:22:22 +01:00
Matthias Beyer 3a3f9ebeed Convert imag-contact to propagate errors to main()
This change exploded (in complexity) much more than I expected. So this
diff converts the whole codebase of imag-contact to propagate errors up
to the main() function.

Changes in functionality might happen but are unintended.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 16:37:04 +01:00
Matthias Beyer deea1d262b Convert codebase to propagate error to main()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 15:33:29 +01:00
Matthias Beyer 611fcbc774 Implement imag-todo-show table view by default
By passing -T, plaintext output can be generated.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 14:48:41 +01:00
Matthias Beyer 8e0be9f1f7 Fix: Allow to pass only UUIDs and automatically add "todo/" prefix
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 14:44:36 +01:00
Matthias Beyer 82146e0c98 Fix: Ignore Broken Pipe errors when writing list
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 14:44:33 +01:00
Matthias Beyer 49eb0c13e9 Merge branch 'imag-todo/ids-from-stdin' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 14:09:43 +01:00
Matthias Beyer bd4a839cb9 Rewrite list_todos() to be able to read ids from stdin
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 13:00:00 +01:00
Matthias Beyer cadd9f8944 Rewrite show functionality of imag-todo
This implementation uses the handlebars crate so that the show format
can be specified in the configuration file.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-01 12:54:11 +01:00
Matthias Beyer c2d4ec5fef imag-notes: Do not call exit() but propagate error to main function
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-23 20:16:28 +01:00
Matthias Beyer 5a89a29b6d Fix: Only view entry if output is not a pipe
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-13 19:21:28 +01:00
Matthias Beyer 9f5b28ea11 Fix: Do not call exit(), but propagate error
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-10 01:53:09 +01:00
Matthias Beyer 5cfbab8b8e Add import functionality for taskwarrior imports
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-09 17:35:19 +01:00
Matthias Beyer 7873d99df5 Reimplement imag-todo
Parts of this commit were written by Leon, but in the process we needed
to squash. Here's his original commit message:

> Change todo listing behaviours
>
> This commit changes the todo binary to have the following behaviour:
> - `imag-todo`: Print all non-hidden pending todos
> - `imag-todo pending`: Print all non-hidden pending todos
> - `imag-todo list`: Print all non-hidden non-done todos
>   - `--done`: Include done
>   - `--no-pending`: Exclude pending
>
> Each and every command respects the hidden attribute only on the view
> layer, but still pipes the hidden entries to stdout.
>
> Internally, this introduces a black- and whitelist todo-state matcher,
> that can be configured to match only certain todos and thereby
> improves reusability of functions over the domain binary.

Signed-off-by: Leon Schuermann <leon@is.currently.online>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-09 17:35:06 +01:00
Matthias Beyer fa7e8cc6b4 Merge branch 'imag-bookmark-noexit' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-27 18:44:54 +01:00
Matthias Beyer fe1885c8a9 Transform imag-calendar to not call exit() but propagate errors to main()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-27 11:29:47 +01:00
Matthias Beyer ee739e17fc Fix indention
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-27 10:52:18 +01:00
Matthias Beyer 641c6c7761 Transform imag-bookmark to not call exit() but propagate errors to main()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-27 10:50:30 +01:00
Leon Schuermann 26b05b4bb9 imag-calendar: implement ImagApplication & add CLI completion
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:48 +02:00
Leon Schuermann e840d4502c imag-wiki: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 2a1e78c705 imag-todo: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann e1dbb596a1 imag-timetrack: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 6590a4b8cb imag-notes: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 870a09f1dc imag-mail: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 4c918c78c0 imag-log: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 621c5f96f8 imag-habit: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 3e12bd99d4 imag-diary: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann 3144080488 imag-contact: implement ImagApplication
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
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