Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: org-brain-file-to-headline #48

Open
Kungsgeten opened this issue Jun 25, 2017 · 3 comments
Open

Feature: org-brain-file-to-headline #48

Kungsgeten opened this issue Jun 25, 2017 · 3 comments
Labels

Comments

@Kungsgeten
Copy link
Owner

Like org-brain-headline-to-file, but the other way around.

@emanresusername
Copy link

similarly, is there a way to take a header from an existing org-mode file and turn it into a proper org-brain entry/headline?

@Kungsgeten
Copy link
Owner Author

@emanresusername Not in a single command, no. You can, however, just copy the headline and paste it into a file in your org-brain directory. Then you can create an ID for the pasted headline, using M-x org-id-get-create. Now it will be treated as an entry.

@hagmonk
Copy link

hagmonk commented Dec 29, 2017

For anyone who wants to experiment with this, it's pretty easy to do it in bulk. In my case I had a single parent headline with a couple of dozen children. Ensure point is on the parent headline, then eval (M-:) the following:

(org-map-tree 'org-id-get-create)

There is also org-map-region if you want to map this function across all the headlines in a region rather than a subtree.

Then run org-brain-visualize again, or hit v in an existing org-brain-visualize buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants