emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Duy Nguyen <ddnguyen2101@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: [Patch] Show org file title in org-clock clocktable
Date: Sat, 13 Aug 2022 16:00:49 +0800	[thread overview]
Message-ID: <87edxk7etq.fsf@localhost> (raw)
In-Reply-To: <CAM=3T04s=kH_9O2Tvssjz9wM1Lyc2F7xpVcnT10fuH1ESsWHLQ@mail.gmail.com>

Duy Nguyen <ddnguyen2101@gmail.com> 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


  reply	other threads:[~2022-08-13  8:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12 21:54 [Patch] Show org file title in org-clock clocktable Duy Nguyen
2022-08-13  8:00 ` Ihor Radchenko [this message]
2022-08-13 10:55   ` Duy Nguyen
2022-08-13 11:35     ` Ihor Radchenko
2022-08-15  6:40       ` [PATCH v2] " Duy Nguyen
2022-08-17  9:34         ` Ihor Radchenko
2022-08-17 18:53           ` [PATCH v3] " Duy Nguyen
2022-08-20  6:14             ` Ihor Radchenko
2022-08-21 12:06               ` Duy Nguyen
2022-08-28  8:11                 ` Duy Nguyen
2022-08-28  8:33                   ` Duy Nguyen
2022-08-28 11:30                     ` Duy Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edxk7etq.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=ddnguyen2101@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).