From 9c8a4c0974dbdafa2f4ab775ffb69e6ec7b52a5e Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Tue, 6 Jul 2021 18:31:51 +0300 Subject: [PATCH] Prepare new release --- shellnotes.sh | 10 +++++++- util/quickread/l/l.sh | 2 +- util/shellnotes/i/i.sh | 2 +- ver/.shellnotes_version | 2 +- whatsnew.sh | 11 +++++++++ whatsnew.txt | 55 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 whatsnew.sh create mode 100644 whatsnew.txt diff --git a/shellnotes.sh b/shellnotes.sh index cefea17..22ac286 100644 --- a/shellnotes.sh +++ b/shellnotes.sh @@ -1,6 +1,13 @@ -#The first line is the current shell, found by install.sh . + +#The first line is the user's default shell found during installation process. +#Warning! If you don't have gedit(text editor) or nano installed, you may have to change the default text editor (lines 10, 25, 40). + +#The lines below must NOT be changed. export DIR="$(pwd)" + +. ~/.shellnotes/whatsnew.sh + . ~/.shellnotes/util/getv.sh . ~/.shellnotes/def/defaults.sh . ~/.shellnotes/util/ChMkDir.sh @@ -22,3 +29,4 @@ export DIR="$(pwd)" . ~/.shellnotes/util/.hidden/.clearlogs.sh . ~/.shellnotes/util/.hidden/.resetshellnotes.sh + diff --git a/util/quickread/l/l.sh b/util/quickread/l/l.sh index e8463fa..1011559 100644 --- a/util/quickread/l/l.sh +++ b/util/quickread/l/l.sh @@ -18,7 +18,7 @@ if [ -f $DEFAULT_PATH/$notename ]; then echo "There's no such line in this file." echo "The minimum line number you can use for a file is 1." else - sed "${line}q;d" $DEFAULT_PATH/$notename + sed "${line}q;d" $DEFAULT_PATH/$notename fi else diff --git a/util/shellnotes/i/i.sh b/util/shellnotes/i/i.sh index d54ccdc..455c5a1 100644 --- a/util/shellnotes/i/i.sh +++ b/util/shellnotes/i/i.sh @@ -5,7 +5,7 @@ Released under the "All rights reserved" category. See the RIGHTS.txt file in /docs/github/ for its full text. info -case $1 in -i|--i ) +case $1 in -i|--info ) echo "This is an original copy of the shellnotes project from the github repository." echo "Copyright © Dimitris Marakomihelakis. All rights reserved." esac \ No newline at end of file diff --git a/ver/.shellnotes_version b/ver/.shellnotes_version index 9f55b2c..56e972a 100644 --- a/ver/.shellnotes_version +++ b/ver/.shellnotes_version @@ -1 +1 @@ -3.0 +3.5 \ No newline at end of file diff --git a/whatsnew.sh b/whatsnew.sh new file mode 100644 index 0000000..51114a5 --- /dev/null +++ b/whatsnew.sh @@ -0,0 +1,11 @@ +#See what's new after opening your terminal + +echo -n "shellnotes has been updated.\nWant to see what's new?(Y/N): " && read show + +case $show in + y | yes | Y | Yes | YES ) + less ~/.shellnotes/whatsnew.txt + sed -i /whatsnew/d ~/.shellnotes/.shellnotes.sh + rm -f ~/.shellnotes/whatsnew.txt + rm -f ~/.shellnotes/whatsnew.sh +esac diff --git a/whatsnew.txt b/whatsnew.txt new file mode 100644 index 0000000..9b6091d --- /dev/null +++ b/whatsnew.txt @@ -0,0 +1,55 @@ +Shellnotes 3.5 Updates +6/7/2021 + +Additions: + +- `notegrep`: new command for manipulating notes with grep's tools +- Added parameters and improved `quickread` +- Added the set-defaults.sh log as an option in the logfile viewer (`shellnotes -l`). +- `shellnotes -i` or `--info`: Information about your shellnotes copy +- Added manpages for hidden commands (`clearlogs`, `resetshellnotes`) +- `resetshellnotes -f` or `--force`: Avoid prompt when resetting shellnotes. + +Fixes: + +- Fixed clearlogs.sh generating empty logfiles inside `/exec` +- Fixed bug #116 `-DynamicOutputBug`: "listnotes -d output generates autoscroll, instead of starting from where the command was executed." +- Fixed "\n" input resulting in an error +- Fixed auto-update illegal math bug +- Fixed not returning to previous directory bug +- Fixed bug #72 `-WithoutStringBug`: "If there are no matches in the input, "notegrep -ws" will display the file as is." + +Updates & Changes: + +- Reorganized scripts under `util/` +- Optimized the install script (`install.sh`) +- Enhanced all manpages +- New logging method: Logging directly from executables, in order for the process to take less time (clears logfiles with same method) +- Updated Documentation +- Reorganized the logfile system +- Removed syntax files (stored in `util/.syntax/`) +- Changed `listnotes` output: It's more traditional now +- Renamed `noteinfo` to `notewc` as it uses the `wc` command & changed its output +- `resetshellnotes` now resets the user's shell + +Notes: + + _____ __ __________ __ _ ______ _________________ + / ___/ / / / / ____/ / / / / | / / __ \/_ __/ ____/ ___/ + \__ \ / /_/ / __/ / / / / / |/ / / / / / / / __/ \__ \ + ___/ / __ / /___/ /___/ /___/ /| / /_/ / / / / /___ ___/ / + /____/_/ /_/_____/_____/_____/_/ |_/\____/ /_/ /_____//____/ + +(Ignore the 80's ASCII art.) + +Welcome to shellnotes 3.5! + +This version brings many bug fixes as well as additions for shellnotes! +Starting with the main feature of the update, `notegrep` is a tool that can be used on a daily basis. It simply uses grep to change the way you read your notes. You can experiment this new tool as well as a variety of options (split-character, without-character, multiple patterns and files and more). +The biggest improvement of 3.5 must be `quickread`. There are some new parameters you can play with, or you can just test its new error-handling ability. +Let's not forget the bug fixes: It's even safer to use shellnotes without worrying about errors occuring. +And last, shellnotes is now way faster than before. Instead of compiling loggers on the go, shellnotes uses pre-existing executables to speed up the process. + +Still don't know what's going on? Read the manpages! By the way, the manpages got updated as well... + +Have fun taking notes! \ No newline at end of file