Hi Nikolai, Nikolai Weibull <n...@disu.se> writes:
> Here’s a suggested solution. We keep track of whether the parent > entry already has any children, then we call org-insert-heading with > two universal arguments to add an entry at the end of the current > subtree. Finally, if there weren’t any children already, we demote > the entry we added so that it becomes a child of the parent entry. Finally applied in master, thanks, > Please note that this was written while eating dinner with my kid. Bon appétit ! -- Bastien