From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daryl Manning Subject: Re: Creating table of summarized org-mode result fields in column view "report" Date: Thu, 12 Mar 2020 15:23:48 +0800 Message-ID: References: <871rpyvza3.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000949c9905a0a33c97" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37581) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCICJ-00010H-WB for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 03:24:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCICI-0007co-HR for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 03:24:03 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:42027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCICI-0007cE-8k for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 03:24:02 -0400 Received: by mail-wr1-x430.google.com with SMTP id v11so6008147wrm.9 for ; Thu, 12 Mar 2020 00:24:02 -0700 (PDT) In-Reply-To: <871rpyvza3.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --000000000000949c9905a0a33c97 Content-Type: text/plain; charset="UTF-8" Thanks for the response. Very helpful. I figured out since writing it rom light research on column view and the helpful column view video on the emacs site): 1. Parse the daily files to AST (can do this now via a function) 2. Convert the "yaml-ed" fields to :PROPERTY: "drawer" fields (after looking at the Column video on the emacs website) 3. Dump to a temp buffer with the column definition somewhat like what you outlined ahead of it to render (though was not sure how to pass the fields dynamically, but figured could start with fixed) However, I figured this has to be a common enough(ish) thing that people need to do that it might already been a code snippet function (or even a package) floating around. So, this was more a "does this look like a problem someone has already solved" and where is that package/code kinda question. =] #lazyweb Otherwise, I'll just wander off and attempt coding it myself over le weekend. =] thanks! Daryl. On Thu, Mar 12, 2020 at 2:54 PM Eric S Fraga wrote: > On Thursday, 12 Mar 2020 at 12:46, Daryl Manning wrote: > > Can anyone point me to something similar already? (and is this even > > possible with column view instead of say, turning it into an org-table > > within a buffer. > > This would be straightforward if each of those entries were a > PROPERTY. Then you can specify the properties to display in column view > along with their widths. I do this for my todo list which is all in a > single org file. > > You could define the columns along these lines: > > #+columns: %60ITEM %this %that %50highlights > > to show the contents. > > HTH, > eric > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-412-ge18415 > --000000000000949c9905a0a33c97 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the response. Very helpful.

I figured out since writing it rom light research on column= view and the helpful column view video on the emacs site):
<= br>
1. Parse the daily files to AST=C2=A0 (can do this now via a = function)
2. Convert the "yaml-ed" fields to :PROPE= RTY: "drawer" fields (after looking at the Column video on the em= acs website)
3. Dump to a temp buffer with the column defini= tion somewhat like what you outlined ahead of it to render (though was not = sure how to pass the fields dynamically, but figured could start with fixed= )

However, I figured this has to be a common enou= gh(ish) thing that people need to do that it might already been a code snip= pet function (or even a package) floating around. So, this was more a "= ;does this look like a problem someone has already solved" and where i= s that package/code kinda question. =3D]=C2=A0=C2=A0 #lazyweb

Otherwise, I'll just wander off and attempt coding it m= yself over le weekend. =3D]=C2=A0

thanks!
Daryl.





On Thu, Mar 12, 2020 at 2:54 PM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
On Thursday, 12 Mar 2020 at 12:46, Daryl M= anning wrote:
> Can anyone point me to something similar already? (and is this even > possible with column view instead of say, turning it into an org-table=
> within a buffer.

This would be straightforward if each of those entries were a
PROPERTY.=C2=A0 Then you can specify the properties to display in column vi= ew
along with their widths.=C2=A0 I do this for my todo list which is all in a=
single org file.

You could define the columns along these lines:

#+columns: %60ITEM %this %that %50highlights

to show the contents.

HTH,
eric

--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-412-ge18415
--000000000000949c9905a0a33c97--