summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThing2 <thing2@seacrossedlovers.xyz>2025-03-17 12:59:21 -0700
committerThing2 <thing2@seacrossedlovers.xyz>2025-03-17 12:59:21 -0700
commit01605fe841751e06ef3709930aea4f7cfb91c108 (patch)
tree5eda28986a5f46d0dbe6d16cb71fb762696c9389
parentd1e1458a7cab0d3facb8cc39741c306e2391ab92 (diff)
finishedHEADmaster
-rw-r--r--.kdev4/goatNote.kdev45
-rw-r--r--file.gn4
-rw-r--r--global.gn4
-rw-r--r--goatNote.kdev43
-rw-r--r--goatNote.py3
5 files changed, 18 insertions, 1 deletions
diff --git a/.kdev4/goatNote.kdev4 b/.kdev4/goatNote.kdev4
new file mode 100644
index 0000000..2eca4f4
--- /dev/null
+++ b/.kdev4/goatNote.kdev4
@@ -0,0 +1,5 @@
+[Buildset]
+BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x10\x00g\x00o\x00a\x00t\x00N\x00o\x00t\x00e)
+
+[Project]
+VersionControlSupport=kdevgit
diff --git a/file.gn b/file.gn
new file mode 100644
index 0000000..1221443
--- /dev/null
+++ b/file.gn
@@ -0,0 +1,4 @@
+* headomn * [2025.02.10] {DONE}
+- loop through tokens and find if they are in the right order
+* headtoo * [2025.02.10] {TO.DO}
+- Latex
diff --git a/global.gn b/global.gn
new file mode 100644
index 0000000..1221443
--- /dev/null
+++ b/global.gn
@@ -0,0 +1,4 @@
+* headomn * [2025.02.10] {DONE}
+- loop through tokens and find if they are in the right order
+* headtoo * [2025.02.10] {TO.DO}
+- Latex
diff --git a/goatNote.kdev4 b/goatNote.kdev4
new file mode 100644
index 0000000..7eaf5b2
--- /dev/null
+++ b/goatNote.kdev4
@@ -0,0 +1,3 @@
+[Project]
+Manager=KDevGenericManager
+Name=goatNote
diff --git a/goatNote.py b/goatNote.py
index d457ee0..1bf153e 100644
--- a/goatNote.py
+++ b/goatNote.py
@@ -22,7 +22,7 @@ class date:
def asString(self):
return f"{str(self.year)}.{str(self.month):{'0'}>2}.{str(self.day):{'0'}>2}"
-# 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*"
bulletPointRe = r"-\s*((\s|[A-z0-9])+)\s*"
@@ -156,6 +156,7 @@ while line[0] != "close":
elif line[0] == "save":
file.write(outputGoatNote(values, types))
file.flush()
+ #save file
else:
print("Invalid command :(")