From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WOgCNT6OyV/uCAAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 01:17:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iCXRMD6OyV8HRQAA1q6Kng (envelope-from ) for ; Fri, 04 Dec 2020 01:17:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12B9394043A for ; Fri, 4 Dec 2020 01:17:50 +0000 (UTC) Received: from localhost ([::1]:35412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkzjH-0003aF-L5 for larch@yhetil.org; Thu, 03 Dec 2020 20:17:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkziJ-0003a4-Ll for emacs-orgmode@gnu.org; Thu, 03 Dec 2020 20:16:47 -0500 Received: from server173-4.web-hosting.com ([68.65.122.210]:38976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkziH-0007a9-70 for emacs-orgmode@gnu.org; Thu, 03 Dec 2020 20:16:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=739BZlkpKUb5KX/9UKC1C1zYZp6yRDOBPSuPiLE/1mU=; b=Ardz7niGaUvC7Qah5XbysKC8/U sV84A2ZG8VXP//+1pnNCzVxXaSzNNkkDH31AK1lygq66p9cTY9H39FVAd7HqUvvuiSB2+L6wnGAlk zSoCu1bZzU28bCyxRmDF+UEOO8/DtGOKyaXSGxMX1M+TpJebIRsWl1Xp9LB9haRWo7wQ798ScoyYb ACXgVuoZYbiPS/ToHhiHTiaKkcSb3SokRyd2RCGqMp9mOzhlKKxm2MirMCzzBUOZZopAXEe3TKKUI yrWZl0CS6BbvfcZqXjHOuC3karyS6RINmk8jIlI2N0dH3/KnAZbUtmWNCucMOkjDUsPeeGXKDwm6k 5eljxGAQ==; Received: from [::1] (port=46710 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1kkzhU-001NJU-Oc; Thu, 03 Dec 2020 20:16:01 -0500 MIME-Version: 1.0 Date: Thu, 03 Dec 2020 20:15:56 -0500 From: TRS-80 To: Alan Schmitt , emacs-orgmode@gnu.org Subject: Re: generate an org file for today's appointments In-Reply-To: <878saf8878.fsf@eml.cc> References: <871rg8txj5.fsf@m4x.org> <878saf8878.fsf@eml.cc> Message-ID: <8a5115860cf1cc98c48d83829efc3da1@isnotmyreal.name> X-Sender: lists.trs-80@isnotmyreal.name User-Agent: Roundcube Webmail/1.3.15 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.29 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=isnotmyreal.name header.s=default header.b=Ardz7niG; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 12B9394043A X-Spam-Score: -1.29 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: e+7aHtT2QXXg > On 2020-12-03 06:01, Mikhail Skorzhisnkii wrote: >> Alan Schmitt 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