Kungsgeten / org-brain

Org-mode wiki + concept-mapping
MIT License
1.73k stars 103 forks source link

Heading of heading with the same title as another heading of heading gets listed only once with the parent #310

Open riclage opened 4 years ago

riclage commented 4 years ago

I have a file like so:

* Parent
** Child 1
** Grandchild with same name
**Child 2
** Grandchild with same name

Now when I try to add one of the "Grandchild with same name" as a parent to another file entry, I can't because the list entries is presented as:

Parent::Child 1
Parent::Child 2
Parent::Grandchild with same name

The grandchild entry is not even presented inside one of the children. As I understand it, the list should be displayed as:

Parent::Child 1
Parent::Child 1::Grandchild with same name
Parent::Child 2
Parent::Child 2::Grandchild with same name

Is that not the case?

Kungsgeten commented 4 years ago

Perhaps it should work as you present, but currently it presents the entries as <file>::<headline> where <file> could be the name of the physical file or the file entry's title (depending on a setting). So the depth of the headline currently doesn't matter, which may lead to conflicts.

The problem if having the whole structure could be that the names get very long if you have a deep tree structure.