Improvded README
This commit is contained in:
40
README.md
40
README.md
@@ -1,19 +1,31 @@
|
|||||||
Simple Note System
|
Simple Note System
|
||||||
==================
|
==================
|
||||||
|
|
||||||
The Simple Note System is a shell script enabling easy management of plain-text
|
The Simple Note System is a shell script partially inspired by [pass], in that
|
||||||
notes. SNS depends on GPG for encryption and uses the vim editor by default.
|
it stores notes as normal, plaintext, files in normal folders. It uses the
|
||||||
|
environment-specified editor, and can be configured to use GPG encryption.
|
||||||
|
|
||||||
usage: sns [-ce] NAME NOTEBOOK SECTION"
|
SNS was originally conceived one morning during an update to a popular note-taking
|
||||||
sns [-d ] NAME NOTEBOOK SECTION"
|
app. The thought occurred that a note system need not reinvent the wheel with
|
||||||
sns [-lp] NOTEBOOK"
|
its own GUI editor and proprietary file format, but instead could use the tools
|
||||||
sns [-w ]"
|
already provided by the operating system.
|
||||||
sns [-h ]"
|
|
||||||
|
|
||||||
-c | --create : Create note"
|
As it developed, OpenSSL encryption was dropped in favor of GPG, and the script
|
||||||
-d | --delete : Delete note"
|
was almost entirely rewritten as SNSv2.
|
||||||
-e | --edit : Open note for editing"
|
|
||||||
-h | --help : Display this message"
|
simple note system
|
||||||
-p | --print : Print note to console"
|
==================
|
||||||
-l | --list : List all notes in NOTEBOOK"
|
|
||||||
-i | --init : Write default config and initalize SNS store"
|
usage: sns [-cedp] NAME NOTEBOOK SECTION
|
||||||
|
sns [-l] NOTEBOOK
|
||||||
|
sns [-hi]
|
||||||
|
-c | --create : Create note
|
||||||
|
-d | --delete : Delete note
|
||||||
|
-e | --edit : Open note for editing
|
||||||
|
-h | --help : Display this message
|
||||||
|
-p | --print : Print note to console
|
||||||
|
-l | --list : List all notes in NOTEBOOK
|
||||||
|
-i | --init : Write default config and initalize SNS store"
|
||||||
|
|
||||||
|
|
||||||
|
[pass]: http://passwordstore.org
|
||||||
|
|||||||
Binary file not shown.
@@ -15,7 +15,7 @@
|
|||||||
elif [ "$ARG" = "-p" ] || [ "$ARG" = "--print" ]; then PRINT="TRUE"; OP="TRUE"
|
elif [ "$ARG" = "-p" ] || [ "$ARG" = "--print" ]; then PRINT="TRUE"; OP="TRUE"
|
||||||
elif [ "$ARG" = "-l" ] || [ "$ARG" = "--list" ]; then LIST="TRUE"; OP="TRUE"
|
elif [ "$ARG" = "-l" ] || [ "$ARG" = "--list" ]; then LIST="TRUE"; OP="TRUE"
|
||||||
elif [ "$ARG" = "-h" ] || [ "$ARG" == "--help" ]; then help; exit 0
|
elif [ "$ARG" = "-h" ] || [ "$ARG" == "--help" ]; then help; exit 0
|
||||||
elif [ "$ARG" = "-i" ] || [ "$ARG" == "--init" ]; then init_store; exit 0
|
elif [ "$ARG" = "-i" ] || [ "$ARG" == "--init" ]; then init_store; exit 0
|
||||||
else
|
else
|
||||||
if [ -z "$NAME" ] && [ -n "$ARG" ]; then NAME="$ARG"
|
if [ -z "$NAME" ] && [ -n "$ARG" ]; then NAME="$ARG"
|
||||||
elif [ -z "$NOTEBOOK" ] && [ -n "$ARG" ]; then NOTEBOOK="$ARG"
|
elif [ -z "$NOTEBOOK" ] && [ -n "$ARG" ]; then NOTEBOOK="$ARG"
|
||||||
|
|||||||
@@ -17,11 +17,11 @@
|
|||||||
if [ "$LIST" == TRUE ]; then
|
if [ "$LIST" == TRUE ]; then
|
||||||
list
|
list
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -z "$NAME" ];
|
elif [ -z "$NAME" ]; then
|
||||||
printf "\n%s\n %s\n" "ERROR: Insufficient arguments:" "Notebook not specified"
|
printf "\n%s\n %s\n" "ERROR: Insufficient arguments:" "Notebook not specified"
|
||||||
exit 30
|
exit 30
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NOTE_DIR="$NOTES_DIR"/"$NOTEBOOK"/"$SECTION"
|
NOTE_DIR="$NOTES_DIR"/"$NOTEBOOK"/"$SECTION"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user