From cf26f097bec0c20f610e185db79b466f8c010a88 Mon Sep 17 00:00:00 2001 From: William Melody Date: Tue, 30 Jan 2024 19:50:35 -0800 Subject: [PATCH] Print daily notes directly to terminal in `daily` plugin. refs gh-300 --- plugins/daily.nb-plugin | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/daily.nb-plugin b/plugins/daily.nb-plugin index 1c0021fce..9cd210377 100644 --- a/plugins/daily.nb-plugin +++ b/plugins/daily.nb-plugin @@ -17,7 +17,7 @@ _subcommands add "daily" # Define help and usage text with `_subcommands describe `. _subcommands describe "daily" <] [--print] + nb daily [] Description: Add notes to a daily log. @@ -45,11 +45,8 @@ _daily() { then printf "Add the first note of the day: %s daily \\n" "${_ME}" else - _show "${_target_path:-}" + _show "${_target_path:-}" --print fi - elif [[ "${_content:-}" == "--print" ]] - then - _show "${_target_path:-}" --print else local _timestamp= _timestamp="$(date "+%H:%M:%S")"