ned: change comments
This commit is contained in:
parent
774b4749a7
commit
6d5a3f72e5
1 changed files with 3 additions and 1 deletions
|
@ -47,13 +47,14 @@ open_file() {
|
|||
edit() {
|
||||
check_setup
|
||||
|
||||
# This logic is to allow the $2 to be optional
|
||||
# This logic is to allow $2 to be optional
|
||||
if [ -n "$3" ]; then
|
||||
SEARCH_TERM="$3"
|
||||
NOTE_DIR="$(cd "$BASE_DIR" && fd -t f | sed 's-\./--g' | $FZF_SEARCH "$2")" || exit
|
||||
elif [ -n "$2" ]; then
|
||||
SEARCH_TERM="$2"
|
||||
fi
|
||||
# TODO: what if there is no $2 provided
|
||||
|
||||
# Searching for 'T' will get you today's note
|
||||
if [ "$SEARCH_TERM" = 'T' ]; then
|
||||
|
@ -75,6 +76,7 @@ new() {
|
|||
else
|
||||
NEW_NOTE_NAME="$DEFAULT_NEW_NOTE_NAME"
|
||||
fi
|
||||
# TODO: what if there is no $2 provided
|
||||
|
||||
# Note dir
|
||||
NEW_NOTE_DIR="$BASE_DIR/$(cd "$BASE_DIR" && fd -d 1 | sed 's-\./--g' | $FZF_SEARCH "$2")/notes" || exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue