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

Open org-noter from visualized brain entries #154

Closed
rosetree opened this issue Mar 6, 2019 · 13 comments
Labels

Comments

@rosetree
Copy link
Contributor

@rosetree rosetree commented Mar 6, 2019

Recently I combined this great package with the org-noter document annotator. This works admirably well out of the box. There are just few small issues, that can be improved. The first being that org-noter doesn’t add IDs to new notes (see this issue: weirdNox/org-noter#62).

The second: it’s not possible to call org-noter on an visualized entry of org-brain. This can be manually done with opening the current entry and M-x org-noter there. But this is kind of slow. The following function opens an org-noter session from a visualized entry and add this to C-c n in the visualize mode.

(defun mdr/org-brain-open-org-noter (entry)
  "Open `org-noter' on the ENTRY.
If run interactively, get ENTRY from context."
  (interactive (list (org-brain-entry-at-pt)))
  (org-with-point-at (org-brain-entry-marker entry)
    (org-noter)))

(define-key org-brain-visualize-mode-map (kbd "\C-c n") 'mdr/org-brain-open-org-noter)

Partly sharing this for reference here, in case anyone searches for something similar. Not sure if this should be added in the readme file to the “Other useful packages” section, though. Also I’m happy to here, if there’s something that could be improved.

@Kungsgeten

This comment has been minimized.

Copy link
Owner

@Kungsgeten Kungsgeten commented Mar 22, 2019

This is cool and seems helpful! I haven't used org-noter myself so I feel a bit reluctant to put it in the README before trying it. I'm mostly on a Windows system, and I haven't gotten pdf-tools to work there. I'll try to remember to test it though when I'm using my Linux machine.

@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented Mar 23, 2019

I agree, trying first seems reasonable. The above mentioned issue with org-noter got resolved recently. The following line makes sure, that org-noter creates IDs on new headlines; so new notes are automatically shown in the brain.

(add-hook 'org-noter-insert-heading-hook #'org-id-get-create)

Oh and btw: org-noter doesn’t require pdf-tools. The Emacs DocView mode is enough – if that works on your Windows machine.

@dangom

This comment has been minimized.

Copy link

@dangom dangom commented Apr 8, 2019

@rosetree your setup seems really cool. Do you have your config somewhere, or a description of your workflow? Would be interested to hear more about how you use org-brain for keeping notes.

@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented Apr 13, 2019

@dangom Thanks for your interest. I currently don’t have my config published and I haven’t written about my workflow, yet. One reason is, that I only use it for a month… I plan to write about it, when I have some time to do so.

However, the config is pretty basic: I use the snippet from the org-brain readme file and the code in this issue.

A short overview of the workflow: I currently create an org-brain headline for every topic of a lecture, call org-noter on that headline, use the PDF file of the presentation the profs send us before and then I follow along, taking notes on the slides while they talk. Later I link those entries in the visualized brain. I hope that gets you an idea of the process.

@michaelsjackson

This comment has been minimized.

Copy link

@michaelsjackson michaelsjackson commented May 7, 2019

@rosetree Do you have a video of this workflow? If not yet, in future maybe?

@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented May 10, 2019

@michaelsjackson unfortunately there is no video of my workflow, yet. But it’s a good idea to add a video, if I’m going to write about this workflow.

@Kungsgeten

This comment has been minimized.

Copy link
Owner

@Kungsgeten Kungsgeten commented Jun 2, 2019

Sorry for taking so long, but I've now tried org-noter and your command seems to work great! I've added it to the README.

@Kungsgeten Kungsgeten closed this Jun 2, 2019
@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented Jun 3, 2019

Thanks, for giving it a try, @Kungsgeten

@bepolymathe

This comment has been minimized.

Copy link

@bepolymathe bepolymathe commented Jul 11, 2019

Hi,

Just a comment. There is a mistake in the README. You need to add un "#" character like this

(define-key org-brain-visualize-mode-map (kbd "\C-c n") #'org-brain-open-org-noter)

And this line need to be after Org-brain config in .spacemacs

@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented Oct 16, 2019

@michaelsjackson and @dangom I just published a blog post about my setup and my workflow. This also includes a short video. I hope you find this still helpful. Sorry that this took so long.

@Kungsgeten

This comment has been minimized.

Copy link
Owner

@Kungsgeten Kungsgeten commented Oct 17, 2019

@rosetree Great! Do you mind if I link to it from the README?

@rosetree

This comment has been minimized.

Copy link
Contributor Author

@rosetree rosetree commented Oct 17, 2019

Glad you like it, @Kungsgeten. I don’t mind at all; I’m happy if it helps more people.

@dangom

This comment has been minimized.

Copy link

@dangom dangom commented Oct 18, 2019

Hey, just wanted to say this is really awesome! Thank you for taking the time to put this together and to share it.
The idea of using noter to add notes to pdf slides is also quite cool. Thanks for that as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.