Skip to content

Commit

Permalink
Print daily notes directly to terminal in daily plugin.
Browse files Browse the repository at this point in the history
refs gh-300
  • Loading branch information
xwmx committed Jan 31, 2024
1 parent 68e4210 commit cf26f09
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/daily.nb-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _subcommands add "daily"
# Define help and usage text with `_subcommands describe <subcommand> <usage>`.
_subcommands describe "daily" <<HEREDOC
Usage:
nb daily [<content>] [--print]
nb daily [<content>]
Description:
Add notes to a daily log.
Expand Down Expand Up @@ -45,11 +45,8 @@ _daily() {
then
printf "Add the first note of the day: %s daily <content>\\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")"
Expand Down

0 comments on commit cf26f09

Please sign in to comment.