karlicoss / orgparse

Python module for reading Emacs org-mode files
https://orgparse.readthedocs.org
BSD 2-Clause "Simplified" License
371 stars 43 forks source link

feat: add title in orgparse object in title method #23

Closed olopost closed 3 years ago

olopost commented 3 years ago

add title method in org parse object in order to get title options

this point is often standard in org mode file.

thanks for accept the PR.

Best regards

olopost commented 3 years ago

Hi just push the update for get_file_property and get_only_file_property

I also change the parse_comment parser in order to ignore space at line beginning.

thanks for your feedback.

Best regards

karlicoss commented 3 years ago

Hi @olopost sorry your PR has completely slipped off my mind. On second thought, multivalued properties are pretty rare, so perhaps makes sense to make single valued method name shorter. I've done the change + some other minor edits (just so we merge it quicker), do you think it looks OK? https://github.com/karlicoss/orgparse/pull/28 (I've kept your original commit so you have the attribution!) Let me know and I'll merge it!

karlicoss commented 3 years ago

Merged, but let me know if you have some further comments!