diff options
Diffstat (limited to 'goatNote.py')
-rw-r--r-- | goatNote.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/goatNote.py b/goatNote.py index 173ae0c..d457ee0 100644 --- a/goatNote.py +++ b/goatNote.py @@ -24,7 +24,7 @@ class date: # Tokenizing with regex def tokenize(file: str): - headingRe = r"\s*\*\s*([A-z0-9]+)\s*\*\s*\[(\d\d\d\d[.]\d\d[.]\d\d)\]\s*{(TO[.]DO|DONE)}\s*" + headingRe = r"\s*\*\s*([A-z0-9 ]+)\s*\*\s*\[(\d\d\d\d[.]\d\d[.]\d\d)\]\s*{(TO[.]DO|DONE)}\s*" bulletPointRe = r"-\s*((\s|[A-z0-9])+)\s*" unprocessed = [] end = False @@ -112,7 +112,7 @@ def outputGoatNote(values, types): fileName = input("Which GOATED file do you wanna read?? \n") if fileName == "": fileName = f"{os.environ["HOME"]}/.global.gn" if ".gn" not in fileName: - print("That's not a goatNote file! Silly goose! Automatically putting into the global file!") + print("That's not a goatNote file! Silly goose! Automatically putting you into the global file!") fileName = f"{os.environ["HOME"]}/.global.gn" try: file = open(fileName, "r") @@ -126,7 +126,7 @@ file.close() file = open(fileName, "w") # Drop user into a shell -print("enter one of the following commands: list, toggle, view, help, or type close to exit program") +print("enter one of the following commands: list, toggle, view, help, save, or type close (make sure to save first!!) to exit program") line = input(": ").lower().split(" ") while line[0] != "close": @@ -146,11 +146,11 @@ while line[0] != "close": print(view(values, types)) elif line[0] == "help": - if len(line) == 1: print("enter one of the following commands following the word \"help\": list, toggle, view, formatting, or type close to exit program") - elif line[1] == "list": print("Typing the list command....") - elif line[1] == "toggle": print("TogglE") - elif line[1] == "view": print("look") - elif line[1] == "formatting": print("read") + if len(line) == 1: print("enter one of the following commands following the word \"help\": list, toggle, view, formatting, save, or type close (make sure to save first!!) to exit program") + elif line[1] == "list": print("This command allows you to view a list of all the headings you have in one file.") + elif line[1] == "toggle": print("This command allows you to change any specific goatNote from to-do to done. To use this command, type \"toggle (header you want to change)\"") + elif line[1] == "view": print("This command allows you to view and read every goatNote you have in your selected file.") + elif line[1] == "formatting": print("The formatting style for goatNote files is as follows: \n * heading * [yyyy.mm.dd] {TO.TO/DONE} \n - note body") else: print("enter one of the following commands following the word \"help\": list, toggle, view, formatting, or type close to exit program") elif line[0] == "save": |