all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Feature request: org-agenda-clockreport-mode to omit files with no clocked time
@ 2020-04-26 18:34 Stig Brautaset
  2020-04-26 18:56 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Stig Brautaset @ 2020-04-26 18:34 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I often end up with empty files in my org-agenda-clockreport-mode,
something like this. (For the avoidance of doubt: this is an ECM ;-) )

| File         | Headline         | Time   |   |
|--------------+------------------+--------+---|
|              | ALL *Total time* | *0:42* |   |
|--------------+------------------+--------+---|
| maybe.org    | *File time*      | *0:00* |   |
|--------------+------------------+--------+---|
| projects.org | *File time*      | *0:00* |   |
|--------------+------------------+--------+---|
| tasks.org    | *File time*      | *0:42* |   |
|              | Foo              | 0:08   |   |
|              | Bar              | 0:24   |   |
|              | Quux             | 0:10   |   |

I would have liked it to hide all the uninteresting files (i.e. files
with no clocked time) and instead shown me:


| File         | Headline         | Time   |   |
|--------------+------------------+--------+---|
|              | ALL *Total time* | *0:42* |   |
|--------------+------------------+--------+---|
| tasks.org    | *File time*      | *0:42* |   |
|              | Foo              | 0:08   |   |
|              | Bar              | 0:24   |   |
|              | Quux             | 0:10   |   |

It seems like a small-ish change I may brave to implement--unless
someone beats me to it, which I'm fine with! I would appreciate some
pointers:

1. Would I need to introduce an option, in case anyone relies on the
   empty sections? (I *think* not, as I gather the prevailing wind is to
   reduce the number of options.)
2. Would this likely be best implemented as a post-processing filter? Or
   when generating the table in the first place?
3. Any helpful hints you can think of? :-)


Stig


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

* Re: Feature request: org-agenda-clockreport-mode to omit files with no clocked time
  2020-04-26 18:34 Feature request: org-agenda-clockreport-mode to omit files with no clocked time Stig Brautaset
@ 2020-04-26 18:56 ` Kyle Meyer
  2020-04-26 20:52   ` Stig Brautaset
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-04-26 18:56 UTC (permalink / raw)
  To: Stig Brautaset, emacs-orgmode

Stig Brautaset <stig@brautaset.org> writes:

> I often end up with empty files in my org-agenda-clockreport-mode,
> something like this. (For the avoidance of doubt: this is an ECM ;-) )
>
> | File         | Headline         | Time   |   |
> |--------------+------------------+--------+---|
> |              | ALL *Total time* | *0:42* |   |
> |--------------+------------------+--------+---|
> | maybe.org    | *File time*      | *0:00* |   |
> |--------------+------------------+--------+---|
> | projects.org | *File time*      | *0:00* |   |
> |--------------+------------------+--------+---|
> | tasks.org    | *File time*      | *0:42* |   |
> |              | Foo              | 0:08   |   |
> |              | Bar              | 0:24   |   |
> |              | Quux             | 0:10   |   |
>
> I would have liked it to hide all the uninteresting files (i.e. files
> with no clocked time) and instead shown me:

[...]

> It seems like a small-ish change I may brave to implement--unless
> someone beats me to it, which I'm fine with! I would appreciate some
> pointers:
>
> 1. Would I need to introduce an option, in case anyone relies on the
>    empty sections? (I *think* not, as I gather the prevailing wind is to
>    reduce the number of options.)

I haven't tried, but can you already do this via
org-agenda-clockreport-parameter-plist, in particular by adding
`:fileskip0 t'?


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

* Re: Feature request: org-agenda-clockreport-mode to omit files with no clocked time
  2020-04-26 18:56 ` Kyle Meyer
@ 2020-04-26 20:52   ` Stig Brautaset
  0 siblings, 0 replies; 3+ messages in thread
From: Stig Brautaset @ 2020-04-26 20:52 UTC (permalink / raw)
  To: Kyle Meyer, emacs-orgmode

Kyle Meyer <kyle@kyleam.com> writes:
>> I often end up with empty files in my org-agenda-clockreport-mode,
>> [...]
>> I would have liked it to hide all the uninteresting files (i.e. files
>> with no clocked time) and instead shown me:
>
> I haven't tried, but can you already do this via
> org-agenda-clockreport-parameter-plist, in particular by adding
> `:fileskip0 t'?

That works for me. Thank you!

Stig


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

end of thread, other threads:[~2020-04-26 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-26 18:34 Feature request: org-agenda-clockreport-mode to omit files with no clocked time Stig Brautaset
2020-04-26 18:56 ` Kyle Meyer
2020-04-26 20:52   ` Stig Brautaset

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.