1.1 Update
Fixes: -Fixed bugs -Fixed not getting back to previous working directory -Fixed Problem with Home Folder Additions: -Added noteinfo(): You can now view info about a note, icluding lines, letters and characters! Updates: -Updated Help Page (help.txt)
This commit is contained in:
parent
7073a4184c
commit
3d6550c313
2 changed files with 20 additions and 6 deletions
1
help
1
help
|
@ -29,5 +29,6 @@ Tips:
|
||||||
-Deleting notes using delnote won't send the files to Trash. They will be deleted forever, so don't store other files in your Notes folder.
|
-Deleting notes using delnote won't send the files to Trash. They will be deleted forever, so don't store other files in your Notes folder.
|
||||||
-Even if you don't have a Notes folder, shellnotes will make one for you.
|
-Even if you don't have a Notes folder, shellnotes will make one for you.
|
||||||
-No matter in which directory you are, shellnotes will work from everywhere - and when your done taking notes, you will get back on your previous working directory!
|
-No matter in which directory you are, shellnotes will work from everywhere - and when your done taking notes, you will get back on your previous working directory!
|
||||||
|
-If you want to check if shellnotes is working proprely, try typing "shellnotes" in the terminal!
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#opening a note (newnote will work as well, but this is a simpler one, and will create a new note if $notename doesn't exist)
|
#opening a note (It will create a new note if $notename is blank)
|
||||||
function readnote() {
|
function readnote() {
|
||||||
dir="$(pwd)";
|
dir="$(pwd)";
|
||||||
me="$(whoami)";
|
me="$(whoami)";
|
||||||
|
@ -82,7 +82,7 @@ else
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $readquicknote == "y" ] || [ $readquicknote == "Y" ] || [ $readquicknote == "yes" ] || [ $readquicknote == "YES" ] || [ $readquicknote == "Yes" ]; then
|
if [[ $readquicknote == "y" ]] || [[ $readquicknote == "Y" ]] || [[ $readquicknote == "yes" ]] || [[ $readquicknote == "YES" ]] || [[ $readquicknote == "Yes" ]]; then
|
||||||
clear;
|
clear;
|
||||||
cd ~/Notes
|
cd ~/Notes
|
||||||
cat $notename;
|
cat $notename;
|
||||||
|
@ -91,10 +91,10 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#like quicknote(), but it opens ubuntu's text-editor (gedit).
|
#writes notes using ubuntu's text-editor (gedit).
|
||||||
function newnote() {
|
function newnote() {
|
||||||
cd ~/Notes;
|
|
||||||
dir="$(pwd)";
|
dir="$(pwd)";
|
||||||
|
cd ~/Notes;
|
||||||
me="$(whoami)";
|
me="$(whoami)";
|
||||||
gedit;
|
gedit;
|
||||||
clear;
|
clear;
|
||||||
|
@ -105,9 +105,9 @@ echo "-----------------------------------";
|
||||||
|
|
||||||
#Delete notes from terminal
|
#Delete notes from terminal
|
||||||
function delnote() {
|
function delnote() {
|
||||||
|
dir="$(pwd)";
|
||||||
cd ~/Notes
|
cd ~/Notes
|
||||||
me="$(whoami)";
|
me="$(whoami)";
|
||||||
dir="$(pwd)";
|
|
||||||
read -p "Enter the name of the note you want to delete: " delete
|
read -p "Enter the name of the note you want to delete: " delete
|
||||||
if [ -e $delete ]; then
|
if [ -e $delete ]; then
|
||||||
rm $delete
|
rm $delete
|
||||||
|
@ -129,7 +129,7 @@ function listnotes() {
|
||||||
|
|
||||||
#Help for new users
|
#Help for new users
|
||||||
function shellnotes() {
|
function shellnotes() {
|
||||||
if [[ $1 == "-v" ]]; then
|
if [[ $1 == "-v" ]]; then
|
||||||
echo "Shellnotes version: 1.0"
|
echo "Shellnotes version: 1.0"
|
||||||
|
|
||||||
elif [[ $1 == "-r" ]]; then
|
elif [[ $1 == "-r" ]]; then
|
||||||
|
@ -143,4 +143,17 @@ function shellnotes() {
|
||||||
cd $dir;
|
cd $dir;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
#Take info about a note
|
||||||
|
function noteinfo() {
|
||||||
|
dir="$(pwd)"
|
||||||
|
cd ~/Notes
|
||||||
|
read -p "Enter note name: " notename;
|
||||||
|
if [ -e $notename ]; then
|
||||||
|
wc $notename;
|
||||||
|
echo "(lines/words/chars/name)"
|
||||||
|
else
|
||||||
|
echo "That note doesn't exist."
|
||||||
|
fi
|
||||||
|
cd $dir
|
||||||
|
}
|
||||||
#Shellnotes made by dmarakom6.
|
#Shellnotes made by dmarakom6.
|
||||||
|
|
Loading…
Reference in a new issue