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

Sync notes between RTM and org-mode #1

Open
gleitz opened this issue Feb 4, 2011 · 4 comments
Open

Sync notes between RTM and org-mode #1

gleitz opened this issue Feb 4, 2011 · 4 comments

Comments

@gleitz
Copy link

gleitz commented Feb 4, 2011

I'd like the ability to write notes in slack-rtm and have them sync'd with RTM. slack-rtm currently places the notes above the :PROPERTIES section (not sure if this space has a defined name in org-mode).
rtm.el provides rtm-tasks-notes-[add|delete|edit] so all i need to do is capture the current note (and note id) and sync it.
it would be nice to store notes as properties but it appears they can only be one line. i'll hack around with this a bit but i'd like to hear your thoughts.

@slackorama
Copy link
Owner

I was planning on adding this but kind of got stalled.

FWIW, the nomenclature I use for that part of the outline is 'body'. I can't recall if org does it the same way. Right now, notes aren't really synced though. They are just dumped out to the body of the task.

My plan was to make each note a sub-item to the task. Something like:

* TODO This is a task
:PROPERTIES:...
** Note 1 headline
   this is the note body
   more of the note
   :PROPERTIES:
   :note-id: xxxx
   :END:
** Note 2 headline
    this is the note body
    more of the note
   :PROPERTIES:
   :note-id: yyyyy
   :END:

@gleitz
Copy link
Author

gleitz commented Feb 6, 2011

i like it! i'll take a stab at creating sub-items.

@gleitz
Copy link
Author

gleitz commented Feb 9, 2011

Given this context:

* TODO This is a task
:PROPERTIES:...
** Note 1 headline
   this is the note body
   more of the note
   :PROPERTIES:
   :note-id: xxxx
   :END:
** Note 2 headline
    this is the note body
    more of the note
   :PROPERTIES:
   :note-id: yyyyy
   :END:

Do you know how to get the note-body?

(org-get-entry) seems to return a whole bunch of information, but I just want to get the note body ("this is the node body \n more of the note")

@gleitz
Copy link
Author

gleitz commented Feb 9, 2011

I ended up using

(car (split-string (buffer-substring-no-properties (point-at-bol 2) (org-end-of-subtree t)) "\n:PROPERTIES"))

not pretty but it works

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

No branches or pull requests

2 participants