diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-29 03:35:59 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-29 03:35:59 +0000 |
commit | df9ffaaadf7f7e876706d4fd762f47d158c01d8c (patch) | |
tree | aa89e06b1b7aacae82d275bf2b23c4b28e4f9bae /libexec/recit-add-entry | |
parent | 34067af321b78094f740ec2d5c8086f7d80d7615 (diff) | |
download | recit-df9ffaaadf7f7e876706d4fd762f47d158c01d8c.tar.gz |
record the current directory and expose entries via `recit here`
Diffstat (limited to 'libexec/recit-add-entry')
-rwxr-xr-x | libexec/recit-add-entry | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/recit-add-entry b/libexec/recit-add-entry index 078000e..322472f 100755 --- a/libexec/recit-add-entry +++ b/libexec/recit-add-entry @@ -61,11 +61,11 @@ fi if [[ "$project" = "" ]]; then - recins --verbose -f Id -v "$uuid" -f Time -v "$fmt_date" -f Notes -v "$notes" -t Entry "${recfile}" + recins --verbose -f Id -v "$uuid" -f Time -v "$fmt_date" -f Notes -v "$notes" -f Context -v "$PWD" -t Entry "${recfile}" echo "$uuid" else if recsel -t Project -p Id ${recfile} | grep "$project" > /dev/null; then - recins --verbose -f Id -v "$uuid" -f Time -v "$fmt_date" -f Notes -v "$notes" -f ProjectRef -v "$project" -t Entry "${recfile}" + recins --verbose -f Id -v "$uuid" -f Time -v "$fmt_date" -f Notes -v "$notes" -f Context -v "$PWD" -f ProjectRef -v "$project" -t Entry "${recfile}" echo "$uuid" else echo "$project not found, list of available projects:" |