geekbook
geekbook copied to clipboard
searcher.py: find a better way to deal with this error
[mm] orgmode2calendar$ git:(master) ✗ python /Users/magnus/Dropbox/geekbook/geekbookapp.py -s
/Users/magnus/Dropbox/geekbook
searcher::making the db
Traceback (most recent call last):
File "/Users/magnus/Dropbox/geekbook/geekbookapp.py", line 286, in <module>
make_db()
File "/Users/magnus/Dropbox/geekbook/engine/searcher.py", line 310, in make_db
db.collect_data()
File "/Users/magnus/Dropbox/geekbook/engine/searcher.py", line 282, in collect_data
all_headers.extend(make_headers_objects_for_md(o))
File "/Users/magnus/Dropbox/geekbook/engine/searcher.py", line 207, in make_headers_objects_for_md
be fixed at some point. The problem is in the file: %s""" % filename)
Exception: Exception: Error: This is stupid, sorry for this. But to get searcher running
you have to have headers structured in a way that first you have # (H1 header) and then ## etc. You can not
start your note with ##. Moreover, you can not have # and then ###. You have to keep #, and ##, and ### etc. It should
be fixed at some point. The problem is in the file: /Users/magnus/Dropbox/geekbook/notes/iphone-battery.md