Kungsgeten / org-brain-export

Export org-brain to other formats
MIT License
31 stars 3 forks source link

Add org tags file export #3

Closed tumashu closed 4 years ago

tumashu commented 4 years ago

Export org-brain to a org-mode file, include org tags, for example:

tumashu commented 4 years ago

For example:

#+TAGS: [ test1 :  test2 test3 ]
#+TAGS: [ test2 ]
#+TAGS: [ test3 ]
Kungsgeten commented 4 years ago

Hi! If I understand correctly, each line will contain an entry title, and the titles of this entry's children? What is the intended purpose of this? I think it might be confusing to name it "tags", since tags is something else in org-mode.

tumashu commented 4 years ago

yes, I use org-brain to manage org tags , so export to a tags file is a useful function

Kungsgeten commented 4 years ago

Wouldn't it be problematic if the title of entries include whitespace or other characters which aren't compatible with the org tag syntax?

tumashu commented 4 years ago

What about remove all chars which are not compatible with the org tag?

Kungsgeten commented 4 years ago

Yes, that seems like a good idea.

tumashu commented 4 years ago

Fixed, please review again.

tumashu commented 4 years ago

i have found a simpler way to deal with brain as tags, so this pr should close.