Skip to content

Commit

Permalink
Chore: Added comments and updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cybercoder-naj committed Jan 4, 2024
1 parent a49bc86 commit 8bbdcd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ Displays the note. Shorthand alias also available with `notes c`.

Combine these together! This opens each matching note in your `$EDITOR` in turn.

### `notes realpath [note-name]`

Displays the path to the note name, if provided. Displays the root path to all notes otherwise.

## Tell me of the future

All the above works. Here's what's coming next:
Expand Down
3 changes: 2 additions & 1 deletion notes
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,10 @@ cat_note() {
realpath() {
local note_path=$1

# If no note name was provided, return notes directory
if [[ -z "$note_path" ]]; then
note_path=$notes_dir
else
else # otherwise, get full path of note
note_path=$( get_full_note_path "$note_path" )
fi

Expand Down

0 comments on commit 8bbdcd4

Please sign in to comment.