<div dir="ltr">That's excellent, thanks a lot! I do agree that arbtt-dump should be kept separate from the categorization, but on the other hand I assume it will be faster for arbtt to output a subset of its entries directly than to, say, pipe the whole output to grep. Could there be a simple grep-like (regex support would be ideal but simple string matching would already be great) ability to limit arbtt-dump's output to entries whose program or title match a given search?<div>

<br></div><div>Also, in the human-readable output, I think it would be nice to omit timestamp components that are smaller than arbtt's set frequency. For example, if arbtt is set to use the default frequency of one sample per minute, it doesn't make sense to have every entry showing the seconds, since they'll be the same for every entry. Even if this would make the logic too complicated, a simple removal of the sub-second resolution time data would be useful for readability (again, for the human output format), IMO.</div>

<div><br></div><div>Finally, a nitpick: isn't interoperability (rather than operability) the right term for describing the rationale for JSON output?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Jun 20, 2013 at 10:53 PM, Joachim Breitner <span dir="ltr"><<a href="mailto:mail@joachim-breitner.de" target="_blank">mail@joachim-breitner.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I implemented parts of your suggestsions, see the documentation at<br>
<a href="http://darcs.nomeata.de/arbtt/doc/users_guide/arbtt-dump.html" target="_blank">http://darcs.nomeata.de/arbtt/doc/users_guide/arbtt-dump.html</a><br>
for what is possible now (--format and --last).<br>
<br>
--filter is actually not so easy: The --filter from stats allows<br>
predicates that involve tags, and hence require actual processing of the<br>
data, and requires categorize.cfg to be read. I’d like to keep<br>
arbtt-dump at least independent of the categorization logic.<br>
<div class="HOEnZb"><div class="h5"><br>
Greetings,<br>
Joachim<br>
<br>
<br>
--<br>
Joachim “nomeata” Breitner<br>
  <a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a> • <a href="http://www.joachim-breitner.de/" target="_blank">http://www.joachim-breitner.de/</a><br>
  Jabber: <a href="mailto:nomeata@joachim-breitner.de">nomeata@joachim-breitner.de</a>  • GPG-Key: 0x4743206C<br>
  Debian Developer: <a href="mailto:nomeata@debian.org">nomeata@debian.org</a><br>
</div></div><br>_______________________________________________<br>
arbtt mailing list<br>
<a href="mailto:arbtt@lists.nomeata.de">arbtt@lists.nomeata.de</a><br>
<a href="https://lists.nomeata.de/mailman/listinfo/arbtt" target="_blank">https://lists.nomeata.de/mailman/listinfo/arbtt</a><br>
<br></blockquote></div><br></div>