Update Readme & renamenote info back

This commit is contained in:
dmarakom6 2021-01-26 21:38:16 +02:00
parent f775a6d471
commit 9606dfeaa1
2 changed files with 16 additions and 18 deletions

View file

@ -3,7 +3,7 @@ A simple and easy way to keep notes via your linux terminal.
# Basic Commands: # Basic Commands:
## newnote: ## newnote:
Write a new note using your text-editor. Write a new note using gedit.
## quicknote: ## quicknote:
Write a note directly from terminal. Write a note directly from terminal.
## readnote: ## readnote:
@ -11,17 +11,17 @@ A simple and easy way to keep notes via your linux terminal.
## quickread: ## quickread:
Read a note directly from terminal. Read a note directly from terminal.
## listnotes: ## listnotes:
View a full list of notes from your default notes folder. View a full list of notes from your notes folder.
## delnote: ## delnote:
Delete a note from your default notes folder. Delete a note from your notes folder.
## shellnotes(-v or --version, -r,-h or --help): ## shellnotes(-v,-r,-h or --help):
Information about shellnotes. Information about shellnotes.
## findnote: ## findnote:
Find a specific note in your Notes folder. Find a specific note in your Notes folder.
## findmisplacednote: ##findmisplacednote:
Find a misplaced note in your system. Find a misplaced note in your system.
## renamenote: ## renamenote:
Rename a note. Rename a note.
# How to download # How to download
@ -49,12 +49,10 @@ in the home directory. Find a file called `.bashrc` and open it.
## step 5: ## step 5:
-Go to the last line of the file you opened at step 4, and write: `source ~/.shellnotes.sh` in order to be able to use shellnotes every time you launch your terminal. -Go to the last line of the file you opened in step 4, and write: `source ~/.shellnotes.sh` in order to be able to use shellnotes every time you launch your terminal.
# Warnings! # Warnings!
*THIS SYSTEM IS MADE FOR BASH SHELL* (Change your shell if necessary.) *THIS SYSTEM IS MADE FOR BASH SHELL* Change your shell if necessary.
*DEFAULT EDITORS AND FOLDER MUST BE VALID* *DON'T CHANGE THE SCRIPT* Only in case you don't have the default editors who are gedit and nano. In that case, you can either change them (see Help Page), or install the default ones.
*DON'T CHANGE THE SCRIPT* (Only in case you don't have the default editors who are gedit and nano. In that case, you can either change them, or install the default ones.)

View file

@ -32,9 +32,9 @@ else
echo -n "Do you want to create one?[Y/N]: " && read create; echo -n "Do you want to create one?[Y/N]: " && read create;
fi fi
case $create in Y|Yes|YES|Yes|y ) if [ $create == "y" ] || [ $create == "Y" ] || [ $create == "yes" ] || [ $create == "YES" ] || [ $create == "Yes" ]; then
newnote newnote
esac fi
clear clear
cd $dir cd $dir
@ -53,7 +53,7 @@ function quickread() {
else else
clear clear
echo "No such note." echo "No such note."
cd $dir cd ~
fi fi
cd $dir cd $dir
} }
@ -220,8 +220,8 @@ function renamenote() {
else else
mv $notename $newnotename mv $notename $newnotename
clear; clear;
echo "Note renamed to $newnotename in Home/$me/Notes" echo "Note renamed from $notename to $newnotename in Home/$me/Notes"
echo "----------------------------------------------" echo "-------------------------------------------------------------"
fi fi
else else