From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SN0DO4pa92JsHAAAbAwnHQ (envelope-from ) for ; Sat, 13 Aug 2022 10:02:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6CTROopa92IWNQAAauVa8A (envelope-from ) for ; Sat, 13 Aug 2022 10:02:18 +0200 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 5265A38243 for ; Sat, 13 Aug 2022 10:02:18 +0200 (CEST) Received: from localhost ([::1]:55140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMm65-00025f-0H for larch@yhetil.org; Sat, 13 Aug 2022 04:02:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMm3n-0001zR-Ji for Emacs-orgmode@gnu.org; Sat, 13 Aug 2022 03:59:55 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:41753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMm3h-0006T8-LR for Emacs-orgmode@gnu.org; Sat, 13 Aug 2022 03:59:55 -0400 Received: by mail-pj1-x102d.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so2769905pjl.0 for ; Sat, 13 Aug 2022 00:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=+58/JftQF713DB8JvQey3Zn6BkwvKsIfpdLl3iSWeew=; b=lplfGyfWWD9JNKaIEjKAAMHZ6QotgLCq0gmXONLutdRvFntfNcqxFVHx+9hWi5jKxi Th3BTpDluMCZTy3TCzXe5SUhy26B6hiEI69ObgBVhoAKBMEe2lIM1GVQFvDv6IvWS9gw PNGK9x3PFNNKG1i3ctmvQc5PEqeNOQHq71dIZGWF+281eMHAg3vSttri2dzpQ4jHPU5+ b/cZcfvM6RywIL08ex6UhjhoNDAJ4bLy3BRSOX3hgYnz2xM8L7E0kDPDgModeCWY34p4 LnU1BGrh/m+w4evYLss02Vr6U5jKWFiN/nsIkfWVrPDB30RSGrjaT3Y/tL4FMI7I/1Kc DM6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=+58/JftQF713DB8JvQey3Zn6BkwvKsIfpdLl3iSWeew=; b=T4GTK2on1dMEqEN1DTbDp2NokKXcyfduTFB3+UNfwvdD1Z8778p3BzeOD7bwiJp3LO CqiYFKnPB9xy4Jalgn/VVrtxQkek13sBcplXPLl0ufxN9Bi9ZQBlcsfVTuXkm06YFh4o qbteLuzglBVVsxhH9EylepaY89ITkdSMlzWbJmFnYj7mYmMB2Y2q5FQY5oa770oUXq6h n5PgK0s3GebRrYNTGgTDbcmQV423mwe/sjfLWJ5BGtWAZKrfUWTXWYW9+fCvBibTqpdq RevAxzzvw9Uyst5UUpx4IbAcru+s/8Pu4qu1F3ttyzgTrwVsDN5g8FOHgEQeiDLqbnnN UtNw== X-Gm-Message-State: ACgBeo2ICUoR47onhy+rwtgc0eX8Db97oz4m91ABjg0ai9jdGj8uYE7m dSkvq9wrhvGPlhH8Yvh88Gw= X-Google-Smtp-Source: AA6agR4m4LsxdPO/XzJn5g2COHL1XAt/T9xIdGc5mLR3tzSZPueB419jf2bG6H4BCDbsaTDu87brGw== X-Received: by 2002:a17:903:188:b0:16f:102d:a62 with SMTP id z8-20020a170903018800b0016f102d0a62mr7406819plg.33.1660377588140; Sat, 13 Aug 2022 00:59:48 -0700 (PDT) Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id v8-20020a17090a0c8800b001f94d25bfabsm1002483pja.28.2022.08.13.00.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 00:59:47 -0700 (PDT) From: Ihor Radchenko To: Duy Nguyen Cc: Emacs-orgmode@gnu.org Subject: Re: [Patch] Show org file title in org-clock clocktable In-Reply-To: References: Date: Sat, 13 Aug 2022 16:00:49 +0800 Message-ID: <87edxk7etq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660377738; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=+58/JftQF713DB8JvQey3Zn6BkwvKsIfpdLl3iSWeew=; b=EkRZHb1qKoDXoA1rsWcx8VCs2J3KGUdghS2cENfP8A3kR6l0g2qs/2XGuaWzfqiiAw3c2P I+OVdwUwbIG+aKjyYdU5mkGkdTVfJyuLH5KaIChouKGdUEFu13Z4AIWtyj3pqIdvHqoq7E 4xskC2F20QlmP97UooIvcPxBD6ebAwIoditWf1cbzOEVNUwbEnI/Mt+tN6Q30+zxw/l8gd OlQJiwzBO+pdmQvTmlMK2cNHg1+n/99agjfMj7AQyGhhT+HVkYnFbrFKIvfJHgbGVR2dfT lQlTe3rxCUmd4MHaVpR8HXohc3FpfvcbuP1WKQsTF8gPfs6I8rQorUfiSGhixA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660377738; a=rsa-sha256; cv=none; b=cjr6H69X5WQP2Pmr6ffjF7s5fRyLJbdn2hwxnJ/xiKKJvw2lMbczsmF7mt/njSOrXXLlmo 4oRbQFpyZv/DR9L4XLtcZ5vk0R+pEmDvhn0tlKls6x6Ijaqm5bBuFSXy1pTiGQvctkTRqk xQey6F0rbkgstIWN29DbWF0EmtURgQI/+Xc+DfjegPbm3iI7dqjpZONfaWQYyKH9plPCLd 7Pq/PTXhASe4/ZAcRaFYXOum7u4C9EA3IgqhH5e2Fb0brmbXbbEOBp5bwnrxbiWQkdsq/i 7vtKBo3JZwvDdCC8adFVtvlAt4nqS3zkTtHgzM9RYUoeD1kE88UdwblwsMgo0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lplfGyfW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lplfGyfW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5265A38243 X-Spam-Score: -7.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: m1RI8M22Ar4d Duy Nguyen writes: > Please find attached a patch to allow users to show the org file titles > (i.e. the value of #+title) instead of the file name in the org-clock > clocktable. Thanks for the contribution! > I created this patch as I am using a combination of org-roam and org-agenda > to manage my tasks, where each project has its own org-roam file (and > therefore, a #+title). For my work I also need to generate weekly time > reports, with my todos spread over different org(-roam) files. I think the > clocktable looks nicer with the org file title than the name generated by > org-roam, which also has some other irrelevant information (for the > clocktable) in it such as date and time created. I believe this feature > could be useful for other users as well who have their tasks spread over > multiple org-roam files like me. The feature can easily be used by adding > ":filetitle t" as an option in the clocktable. Sounds reasonable. > Please note that the org-clock-get-file-prop function is heavily inspired > by vulpea-buffer-prop-get from the vulpea package - I just copied it over > and made some adjustments to make it work for the envisioned use case. Please use the built-in org-collect-keywords instead. > Allow user to show org file title instead of file name in the > clocktable. If the file does not have a title defined, the file name > will be shown in the clocktable. This is a user-facing change and should be documented in etc/ORG-NEWS file. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92