From 3a9c76d44f5c60c0f66acad9cbfbc8f255aff0dc Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Sun, 26 May 2024 21:38:43 +0200 Subject: fine-adjustments --- .extras | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.extras') diff --git a/.extras b/.extras index eff3e3f..0647ca0 100755 --- a/.extras +++ b/.extras @@ -1,14 +1,20 @@ NOTES_DIR=$HOME/ghq/github.com/simenandre/notes/ function note() { if [ $1 ]; then - echo $1 >> $NOTES_DIR/$(date +%Y-%m-%d).md + FILE=$NOTES_DIR/$(date +%Y-%m-%d).md + + if [ $2 ]; then + FILE=$2 + fi + + echo $1 >> $FILE fi } function nt() { if [ $1 ]; then CONTENT="- [ ] $1" - note $CONTENT + note $CONTENT $2 fi } @@ -18,3 +24,5 @@ function getBjerkIssues() { --json title,body,url,createdAt,assignees,number,labels,comments \ --jq 'map({url, createdAt, title, labels: [.labels[].name], assignees: [.assignees[].login], body, number: "#\(.number)", comments: .comments | map({ body: .body, createdAt: .createdAt })})' } + + -- cgit v1.2.3