Kungsgeten / org-brain

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

Add in parent as child? #301

Open michaelsjackson opened 4 years ago

michaelsjackson commented 4 years ago

Do we have already this function? This would save us the switching to parent first, if we have later some idea, while being in one of the children, we could directly add something below in the list.

Kungsgeten commented 4 years ago

I'm not quite sure I understand what you're asking for. If Animal is a parent to Cat and you're visualizing Cat, you want to create Dog as a child to Animal? So adding a sibling to the visualized entry?

michaelsjackson commented 4 years ago

Yes, exactly, you understood perfectly.

Kungsgeten commented 4 years ago

What if the visualized entry have more than one parent? Choose parent first maybe?

michaelsjackson commented 4 years ago

Oh, yes, this deep I did not think, my suggestion was for a single parent, typically the case in lecture context, some topic areas where you dive in with the children. So there is only one parent.

For my use case it would be enough, if there are more than one parent it could ask for the parent to select yes, why not. But if there is only a single parent, no questions asked, directly adding the sibling. This would be my main use case scenario. Thanks for caring and deep thinking.

Kungsgeten commented 4 years ago

Yeah, I'll see what I can do. It seems like it could be useful.

I'm not sure if you're aware but a recent addition is that if you put the "point" (text cursor) on an entry in org-brain-visualize (one of the parents in your case) and use C-u before the command shortcut it will usually apply the command to the entry button you're at, instead of the visualized entry.

So say that you want to add a child to one of the parents. Move the cursor to it (by pressing j or k) and then press C-u c or C-u h to add a child/headline to it.

michaelsjackson commented 4 years ago

Thanks for the tip, no, this feature I was not aware yet, probably many other cool features as well. Ok this would simplify a bit more, so the "switching to parent, adding, coming back" would be replaced just by "cursor movement to parent and using your method above", thanks I will try this method for a while then, sounds already cool. If it is not enough, I can write again, with more reasons hopefully, why I found it not "cool enough". :+1: