From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8O4YF9T3g2FlhgAAgWs5BA (envelope-from ) for ; Thu, 04 Nov 2021 16:10:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iDTHEtT3g2EiGQAAB5/wlQ (envelope-from ) for ; Thu, 04 Nov 2021 15:10:12 +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 B2D8D1DEE1 for ; Thu, 4 Nov 2021 16:10:11 +0100 (CET) Received: from localhost ([::1]:54518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mieNV-0004Ig-Gd for larch@yhetil.org; Thu, 04 Nov 2021 11:10:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mieHm-0004Vb-0D for emacs-orgmode@gnu.org; Thu, 04 Nov 2021 11:04:14 -0400 Received: from se07.route25.eu ([2a05:1500:300:2:4c1:10ff:fe00:1ce]:60895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mieHg-0000k2-Gp for emacs-orgmode@gnu.org; Thu, 04 Nov 2021 11:04:13 -0400 Date: Thu, 4 Nov 2021 16:03:34 +0100 From: Russell Adams To: emacs-orgmode@gnu.org Subject: Re: [QUESTION] How to generate org-agenda view for clocked tasks and logs etc which are sorted by timestamps? Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9WLQux0N3HQm8ltz8rnu+BPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xiExUbNqvmdkLSOzf1W2Y3z8hkeSqZT0W1YMl0fRDa99cV PSoHm0W/3adFfiYl2nuLnnqMIUd+CT1niAkQtdT1/T4GcPvCLvSpAEEGy7kYxsD3QRUnhlexiXT3 xXuXeIhevFP+kOiMW3ZJfjMJYMEj+gaXrHkgRC7/tI3CjXmVylI3hUR174TAU8LiLVUzcV3Hh0cQ L0Ci0sRm4Wh/iZxmwL2WEaPBA6De4XYiAIQRLsztdQUSqk/AeLi65+4s/LrywTM2yEHEhvC9Izsy /NENTMQ3Kg3hL2oXz5A5E5R/dS4GkJ5hfB+qWugfDEytZYoACfRtBjLzEjgIZNLWhI/Mshn3T8Ox KyIrAogwLlirll+u0Sc2bgjgy6NE5WzPnrJ1fJyKyenPq733oZ8bAyJmHQrtppYmxMktfUX7kfB+ UdezYqxGMqsKjARq8PBC4qgxMmglBiLsgrvXOb7qEGUwgxHIagHkgJmlqPNWnLI1oovhSJcbnX/H QqL/X9rNCJCc6iESJvKm1NV8gkr+Wu8ScVDXinOVyuIpITQ9z3M3DLMi8hWdki0aJI+WTfhcWWtJ HYSbq7x+njwKytwz7s2FBw/kRnmLEqBTVkvt9ThomKRfMDaSegs/XCjST+w6ET9OtRj0G2jqOXiL V6UpSFXDO//0FC8uiskn7aSYNbeQyvBJHk8ADhzinZv9bpdoS3UnmNnGBopB1JwatBv87d2RLOjr OwwGI3kKu05JnDlv7nAKet5ATEVyvcD3zonKMui8c+OUp6hNZ2VhCBZKb+A6iPg8NGrhBSlTYXv+ RODac3l/RD91uSyiea01eMu71bNg7hEqHNQ/Coziacu9Z2XqiNaC014Vy40HEXgl5C8scH0/gH24 cC/XVmH4TU+iDjl5k1c1t3FSvMI7d3CD2zPY9R/2gMGq0KWAzmMf+ibVDgiG9/j5qZW3Uf+gmMUZ GzglarSqmECMkPHOyvTSaWak76WS0gK94wcwLRgYWRwLFAmGZionQ8jFfz1/t0tMyqxPcEm80uax Dm7HyfjBsRHHPEeHyrAUT/s1ZQVvZW+9gG3TxtzLdFtJRh4rDAtZPKA= X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a05:1500:300:2:4c1:10ff:fe00:1ce; envelope-from=rladams@adamsinfoserv.com; helo=se07.route25.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.29 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636038612; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=nMYtC/Nli9wKOAowWJ0OcMIuUl1ei7i0jQ7WgM8iwWs=; b=kIFlALS9ym+BP7sLe2NZ0TB+9rrEWHwuIZ/Wnu/+sD3ypHoDIM70x3ovQelSxYLyDYNaEm yf3+rHmAkHTjqT08yW52yEY1anfdSIPnxvGnboK4PKqziz0GqAM+5K96c1WEQD3vTeCb0U h5Ge0SJizTVQytm/2w9pyAzQET2hSiH3aRonxvRgWYvKPvy05xQLZEjX2GIpt5DL8BYQTa jKeQKHYCckDl5b8z0Cr06wWcVMV0kGtl/QPBdbrNkHYUANt/vV7VDmnbf5MRQ79LeokRHz ifactQ5hCHT9x8r5lNAxGVHTf3T2TsxtPs3i1sIUK0mLfLtJRwrad/KLa0DxeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636038612; a=rsa-sha256; cv=none; b=TfEKaPL6SijRSNlxCiuLEgl6hCQZD7Vy67y1tTMlCqpm0XpMfKx4rZczOtUMOJkUs3wI3v +zJFrOW1sLadYSBEDkOIP0lORHYhDBvcdB1gDTfSi8NEQrNl1Yt1st+EbynOaaTQHewYsF nemY4zXc29wbKbK1rrJCXy4Zyr6nYh4pQDMOTdBVGoNEOkRSqSdSWdZZOU1F+3F5N1uEiy 0loDNn1kLN39sS3qvj4wFXX7y2Mip7WRsvvPbqWFaHc75IOWqFvLE37zs9Fl91SMNoghn9 kRKzGYgyGibJ8nCFECfHJvRvwT82ooNWy3n10XmRauqKmsmCyTM0uiB02sXCHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: 0.58 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: B2D8D1DEE1 X-Spam-Score: 0.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4NZNvNaPZ1PQ On Thu, Nov 04, 2021 at 12:16:19PM +0800, stardiviner wrote: > How to use elisp code to generate an org-agenda view for clocked tasks and > logs etc which are sorted by timestamps? I want to view my daily done tasks > and attach them as part of diary (maybe use org source block elisp code to > generate output?) > > So how to setup `org-agenda-custom-commands` to archive this purpose? I routinely export my agenda to HTML with logbook mode enabled and inactive timestamps. This shows a complete timeline of my actions. I save timestamps on changing TODO to DONE, use active timestamps for appointments, and I constantly add inactive timestamps while taking notes. I use this to justify billing to clients. I open the agenda, v m to make a monthly view, L for logbook, ] to enable inactive timestamps, and then C-x C-w to save. You may be able to just use elisp to trigger these actions. I don't do it often enough to automate it. I love being able to flatten my tree of notes into a timeline this way. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3