This commit is contained in:
Florian Schroedl
2022-06-10 14:06:54 +02:00
parent b0b87869d9
commit 7458778377

View File

@@ -124,23 +124,13 @@ proc foldOrg*(x: OrgBuilderResult): string =
# echo acc.unsafeGet().tree[^1] # echo acc.unsafeGet().tree[^1]
when isMainModule: when isMainModule:
# import nimprof let test1 = """
# import timeit * TODO Level 1
let test1 = """* TODO Level 1
Some stuff inbetween
** DONE Level 2 """ Some text inbetween
let test1_2 = """* TODO Failing ** DONE Level 2
"""
*
** Level 2"""
# let test2 = readFile("/home/floscr/Documents/Org/Bookmarks/bookmarks.org")
# let test2 = readFile("/tmp/gtd.org")
var acc = makeOrg(test1)
let acc = makeOrg(test1)
echo acc.foldOrg() echo acc.foldOrg()
# echo acc.unsafeGet().tree[^1]