emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* generate an org file for today's appointments
@ 2020-12-02  8:36 Alan Schmitt
  2020-12-03 11:01 ` Mikhail Skorzhisnkii
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2020-12-02  8:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]

Hello,

I have my calendars converted to org files (using ical2orgpy), and as I
include them as agenda files, I have this nice view in org-agenda:

               9:10...... now - - - - - - - - - - - - - - - - - - - - - - - - -
  AlanWork:   10:00-12:00 Event A -
  Chris:      10:00-11:00 Event B -
              10:00...... ----------------
              12:00...... ----------------
  AlanWork:   14:00-15:30 Event C -
              14:00...... ----------------
              16:00...... ----------------
              18:00...... ----------------
  Alan:       20:00-21:30 Event D -

Is there a way to piggy-back on all the work that org-agenda already did
to generate something like:

** 10:00 Event A
** 10:00 Event B
** 14:00 Event C
** 20:00 Event D

This would then be inserted in my daily journal file.

I guess the alternative is using org-element to extract the information
from the calendars in org format, but it seems to me org-agenda already
did all the hard work.

Do you have suggestions to do this?

Thanks,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generate an org file for today's appointments
  2020-12-02  8:36 generate an org file for today's appointments Alan Schmitt
@ 2020-12-03 11:01 ` Mikhail Skorzhisnkii
  2020-12-04  1:15   ` TRS-80
  2020-12-04  8:13   ` Alan Schmitt
  0 siblings, 2 replies; 5+ messages in thread
From: Mikhail Skorzhisnkii @ 2020-12-03 11:01 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

I'd suggest to use function "org-agenda-write". You can export 
your agenda views to org files too! However, the formatting will 
be different. Probably something like:

* Event A
  SCHEDULED: <2020-12-03 Thu 10:00-12:00>
* Event B
  SCHEDULED: <2020-12-03 Thu 10:00-11:00>
* Event C
  SCHEDULED: <2020-12-03 Thu 14:00-15:30>
* Event D
  SCHEDULED: <2020-12-03 Thu 20:00-21:30>

I personally do this to generate separate org-file and then 
generate ics file based on that and upload this ics file through 
WebDAV to my calendar server.

Mikhail Skorzhinskii

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> I have my calendars converted to org files (using ical2orgpy), 
> and as I
> include them as agenda files, I have this nice view in 
> org-agenda:
>
>                9:10...... now - - - - - - - - - - - - - - - - - 
>                - - - - - - - -
>   AlanWork:   10:00-12:00 Event A -
>   Chris:      10:00-11:00 Event B -
>               10:00...... ----------------
>               12:00...... ----------------
>   AlanWork:   14:00-15:30 Event C -
>               14:00...... ----------------
>               16:00...... ----------------
>               18:00...... ----------------
>   Alan:       20:00-21:30 Event D -
>
> Is there a way to piggy-back on all the work that org-agenda 
> already did
> to generate something like:
>
> ** 10:00 Event A
> ** 10:00 Event B
> ** 14:00 Event C
> ** 20:00 Event D
>
> This would then be inserted in my daily journal file.
>
> I guess the alternative is using org-element to extract the 
> information
> from the calendars in org format, but it seems to me org-agenda 
> already
> did all the hard work.
>
> Do you have suggestions to do this?
>
> Thanks,
>
> Alan


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generate an org file for today's appointments
  2020-12-03 11:01 ` Mikhail Skorzhisnkii
@ 2020-12-04  1:15   ` TRS-80
  2020-12-04  8:20     ` Alan Schmitt
  2020-12-04  8:13   ` Alan Schmitt
  1 sibling, 1 reply; 5+ messages in thread
From: TRS-80 @ 2020-12-04  1:15 UTC (permalink / raw)
  To: Alan Schmitt, emacs-orgmode

> On 2020-12-03 06:01, Mikhail Skorzhisnkii wrote:
>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>> 
>> I have my calendars converted to org files (using ical2orgpy), and as 
>> I
>> include them as agenda files, I have this nice view in org-agenda:
>> 
>>                9:10...... now - - - - - - - - - - - - - - - - -
>>   AlanWork:   10:00-12:00 Event A -
>>   Chris:      10:00-11:00 Event B -
>>               10:00...... ----------------
>>               12:00...... ----------------
>>   AlanWork:   14:00-15:30 Event C -
>>               14:00...... ----------------
>>               16:00...... ----------------
>>               18:00...... ----------------
>>   Alan:       20:00-21:30 Event D -
>> 
>> Is there a way to piggy-back on all the work that org-agenda already 
>> did
>> to generate something like:
>> 
>> ** 10:00 Event A
>> ** 10:00 Event B
>> ** 14:00 Event C
>> ** 20:00 Event D
>> 
>> This would then be inserted in my daily journal file.
>> 
>> I guess the alternative is using org-element to extract the 
>> information
>> from the calendars in org format, but it seems to me org-agenda 
>> already
>> did all the hard work.

> I'd suggest to use function "org-agenda-write". You can export your
> agenda views to org files too! However, the formatting will be
> different. Probably something like:
> 
> * Event A
>  SCHEDULED: <2020-12-03 Thu 10:00-12:00>
> * Event B
>  SCHEDULED: <2020-12-03 Thu 10:00-11:00>
> * Event C
>  SCHEDULED: <2020-12-03 Thu 14:00-15:30>
> * Event D
>  SCHEDULED: <2020-12-03 Thu 20:00-21:30>
> 
> I personally do this to generate separate org-file and then generate
> ics file based on that and upload this ics file through WebDAV to my
> calendar server.

@Alan,

I don't know if there is a way directly in Org to do what you want or
not, but for some reason my brain goes toward copying the text (either
directly from your agenda, or from Mikhail solution) into some other
buffer and then doing some macro or ELisp based post-processing.  But
I really don't know if that's the Right Thing to do or not.

I am also not someone who uses one of these "daily journal" workflows,
so I can't help but wonder how you link these daily notes back to the
underlying project that generated the event on the agenda in the first
place.  Becasue in my mind, I would jump from the agenda to the
underlying project or task and be making my notes in there directly.
Those linking considerations, in my mind anyway, would really dictate
the rest of the workflow.

Cheers,
TRS-80


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generate an org file for today's appointments
  2020-12-03 11:01 ` Mikhail Skorzhisnkii
  2020-12-04  1:15   ` TRS-80
@ 2020-12-04  8:13   ` Alan Schmitt
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2020-12-04  8:13 UTC (permalink / raw)
  To: Mikhail Skorzhisnkii; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Hello,

On 2020-12-03 12:01, Mikhail Skorzhisnkii <mskorzhinskiy@eml.cc> writes:

> I'd suggest to use function "org-agenda-write". You can export 
> your agenda views to org files too! However, the formatting will 
> be different. Probably something like:
>
> * Event A
>   SCHEDULED: <2020-12-03 Thu 10:00-12:00>
> * Event B
>   SCHEDULED: <2020-12-03 Thu 10:00-11:00>
> * Event C
>   SCHEDULED: <2020-12-03 Thu 14:00-15:30>
> * Event D
>   SCHEDULED: <2020-12-03 Thu 20:00-21:30>
>
> I personally do this to generate separate org-file and then 
> generate ics file based on that and upload this ics file through 
> WebDAV to my calendar server.

This is most useful, thanks a lot! This should be more than sufficient
for my needs.

Best,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generate an org file for today's appointments
  2020-12-04  1:15   ` TRS-80
@ 2020-12-04  8:20     ` Alan Schmitt
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2020-12-04  8:20 UTC (permalink / raw)
  To: TRS-80, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

Hello,

On 2020-12-03 20:15, TRS-80 <lists.trs-80@isnotmyreal.name> writes:

> I am also not someone who uses one of these "daily journal" workflows,
> so I can't help but wonder how you link these daily notes back to the
> underlying project that generated the event on the agenda in the first
> place.  Becasue in my mind, I would jump from the agenda to the
> underlying project or task and be making my notes in there directly.
> Those linking considerations, in my mind anyway, would really dictate
> the rest of the workflow.

This is a very good point. My appointments do not currently have links
to the related projects (the "database of trust" is the calendar one,
which is caldav outside of emacs… maybe I should change that, but I need
to synchronize my calendar with my phone). So I currently add the links
manually. I'll have to think about this.

Best,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-04  8:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-02  8:36 generate an org file for today's appointments Alan Schmitt
2020-12-03 11:01 ` Mikhail Skorzhisnkii
2020-12-04  1:15   ` TRS-80
2020-12-04  8:20     ` Alan Schmitt
2020-12-04  8:13   ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).