Skip to content

Commit faab523

Browse files
committed
changed default editor to use nano if not defined
1 parent badd38a commit faab523

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

notes

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GPGKEY=''
1818
GPG_OPTS="--quiet --yes --compress-algo=none --no-encrypt-to"
1919
GPG="gpg"
2020
SHREDCMD="rm"
21-
EDITOR="${EDITOR:-vi}"
21+
EDITOR="${EDITOR:-nano}"
2222
PAGER="${PAGER:-more}"
2323
#SHREDCMD="shred"
2424

@@ -233,14 +233,14 @@ note_rename () {
233233
newname="`echo ${newname} | tr ' ' '_'`"
234234

235235
case $notefile in
236-
*gpg) skip;;
237-
*) notefile="${notefile}.gpg"
236+
*gpg) skip;;
237+
*) notefile="${notefile}.gpg"
238238
esac
239239

240240
newnotefile="${USE_POINTER}/${newname}"
241241
case $newnotefile in
242-
*gpg) skip;;
243-
*) newnotefile="${newnotefile}.gpg"
242+
*gpg) skip;;
243+
*) newnotefile="${newnotefile}.gpg"
244244
esac
245245

246246
case $MVCP in
@@ -357,7 +357,7 @@ NOTES MANAGEMENT:
357357
notes rename|mv note_title rename a note (will prompt for new name)
358358
notes copy|cp note_title copy a note (will prompt for new name)
359359
notes delete|rm note_title delete a note
360-
notes edit|ed note_title edit a note
360+
notes edit|ed note_title edit a note in default editor
361361
362362
NOTEBOOK MANAGEMENT:
363363
@@ -387,15 +387,15 @@ cmd_view () {
387387
exit 1
388388
fi
389389
case $PROGRAM in
390-
"notes") note_view $myoptions;;
390+
"notes") note_view $myoptions;;
391391
"notebook") cmd_usage;;
392392
esac
393393
}
394394

395395
cmd_show () {
396396
myoptions="$@"
397397
case $PROGRAM in
398-
"notes") note_list $myoptions;;
398+
"notes") note_list $myoptions;;
399399
"notebook") notebook_list $myoptions;;
400400
esac
401401
}

0 commit comments

Comments
 (0)