Skip to content

Commit

Permalink
Merge pull request #38 from dcchambers/remove-info-flag
Browse files Browse the repository at this point in the history
The -i flag isn't actually very useful. Remove it.
  • Loading branch information
dcchambers committed Mar 31, 2021
2 parents 8ce065e + edd2461 commit cae86fd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions note
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ create_note() {
fi
}

print_info() {
printf "Note preview:\n====================\n\n"
head -n 8 "$NOTE_DIR/$NOTE_NAME"
printf "\n====================\n"
printf "Note Stats:\n"
stat "$NOTE_DIR/$NOTE_NAME"
printf "\n====================\n"
printf "File Information:\n"
ls -lah "$NOTE_DIR/$NOTE_NAME"
}

print_help() {
printf "note - Note Keeper 0.6.0 (27 March 2021)
Expand All @@ -49,7 +38,6 @@ Arguments:
-c | --create Create a note but don't open it for editing.
-n | --name Set filename for note. Will be created in \$NOTE_DIR
Don't forget an extension like .md
-i | --info Print information about a note.
-t | --time Add a timestamp when opening a note.
The script loads configuration variables from \${XDG_CONFIG_HOME:-\$HOME/.config}/notekeeper/noterc.
Expand Down Expand Up @@ -98,10 +86,6 @@ if (($# > 0)); then
createNoteOnly=true
shift
;;
-i | --info)
print_info
shift
;;
-n | --name)
NOTE_NAME="$2"
openNote=true
Expand Down

0 comments on commit cae86fd

Please sign in to comment.