diff options
Diffstat (limited to '')
-rw-r--r-- | lib/recfile_template | 19 | ||||
-rwxr-xr-x | libexec/recit-entries | 2 | ||||
-rw-r--r-- | share/recit/example | 4 | ||||
-rw-r--r-- | share/recit/templates/entries.templ | 3 |
4 files changed, 4 insertions, 24 deletions
diff --git a/lib/recfile_template b/lib/recfile_template deleted file mode 100644 index 674dc7b..0000000 --- a/lib/recfile_template +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -function recfile_template { - echo "# recit schema version v0.0.1 -%rec: Project -%key: Id - -Id: example-project -Status: open -Notes: blah blah - -%rec: Entry -%key: Id -%type: Time date -%auto: Time -%type: ProjectRef rec Project -%sort: Time - " -}
\ No newline at end of file diff --git a/libexec/recit-entries b/libexec/recit-entries index fd74853..e76f14d 100755 --- a/libexec/recit-entries +++ b/libexec/recit-entries @@ -59,7 +59,7 @@ if ! [[ "$project" = "" ]]; then fi if [[ "$expression" = "" ]]; then - recsel -t Entry "${recfile}" + recsel -t Entry "${recfile}" | recfmt -f share/recit/templates/entries.templ else recsel -t Entry -e "$expression" "${recfile}" fi diff --git a/share/recit/example b/share/recit/example deleted file mode 100644 index 8895044..0000000 --- a/share/recit/example +++ /dev/null @@ -1,4 +0,0 @@ -here's an example file you could read -it has stuff in it -maybe you want some config values -or even some YAML? diff --git a/share/recit/templates/entries.templ b/share/recit/templates/entries.templ new file mode 100644 index 0000000..1f02a10 --- /dev/null +++ b/share/recit/templates/entries.templ @@ -0,0 +1,3 @@ +{{Time}} ({{Id}}) +{{Notes}} + |