From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Subject: [PATCH] Add support for month trees Date: Thu, 7 Nov 2019 08:29:24 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000a4f50e0596c27ee2" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47534) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSin6-000714-SI for emacs-orgmode@gnu.org; Thu, 07 Nov 2019 09:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSin5-0001Hs-1P for emacs-orgmode@gnu.org; Thu, 07 Nov 2019 09:29:40 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:36748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSin4-0001Fs-Jf for emacs-orgmode@gnu.org; Thu, 07 Nov 2019 09:29:38 -0500 Received: by mail-lf1-x12f.google.com with SMTP id m6so1772868lfl.3 for ; Thu, 07 Nov 2019 06:29:37 -0800 (PST) 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.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --000000000000a4f50e0596c27ee2 Content-Type: multipart/alternative; boundary="000000000000a4f50c0596c27ee0" --000000000000a4f50c0596c27ee0 Content-Type: text/plain; charset="UTF-8" Hi, Please find my attached patch which implements a way to capture entries grouped by month. I was searching for this option, but only found a way to group entries by week or day. I found the following posts where other people also need this feature: https://emacs.stackexchange.com/questions/48414/monthly-date-tree https://lists.gnu.org/archive/html/emacs-orgmode/2018-02/msg00092.html Regards, Jason Dunsmore --000000000000a4f50c0596c27ee0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Please find my attached = patch which implements a way to capture entries grouped by month.

I was searching for this option, but only found a way to gr= oup entries by week or day.

I found the following = posts where other people also need this feature:
https://emacs.stac= kexchange.com/questions/48414/monthly-date-tree
--000000000000a4f50c0596c27ee0-- --000000000000a4f50e0596c27ee2 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-org-capture.el-Add-support-for-month-trees.patch" Content-Disposition: attachment; filename="0001-org-capture.el-Add-support-for-month-trees.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k2osy2xd0 RnJvbSA5ODU4YzJhY2MzYWVmMDU2MWRhY2Q3NDBkMmVlMzUzZjc3MjM5ZmUyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYXNvbiBEdW5zbW9yZSA8amFzb25kdW5zbW9yZUBnbWFpbC5j b20+CkRhdGU6IFdlZCwgNiBOb3YgMjAxOSAyMTo0OTo0MyAtMDYwMApTdWJqZWN0OiBbUEFUQ0hd IG9yZy1jYXB0dXJlLmVsOiBBZGQgc3VwcG9ydCBmb3IgbW9udGggdHJlZXMKCiogZG9jL29yZy1t YW51YWwub3JnOiBBZGQgYDp0cmVlLXR5cGUgbW9udGgnIG9wdGlvbiBmb3IgY2FwdHVyZQogIHRl bXBsYXRlcy4KKiBldGMvT1JHLU5FV1M6IERvY3VtZW50IG5ldyBgOnRyZWUtdHlwZSBtb250aCcg b3B0aW9uLgoqIGxpc3Avb3JnLWNhcHR1cmUuZWwgKG9yZy1jYXB0dXJlLXNldC10YXJnZXQtbG9j YXRpb24pOiBBZGQKICBgOnRyZWUtdHlwZSBtb250aCcgb3B0aW9uIHRvIGNhcHR1cmUgdGVtcGxh dGVzIHRvIGdyb3VwIGVudHJpZXMgYnkKICBtb250aC4KKiBsaXNwL29yZy1kYXRldHJlZS5lbCAo b3JnLWRhdGV0cmVlLWZpbmQtbW9udGgtY3JlYXRlKTogQWRkCiAgYG9yZy1kYXRldHJlZS1maW5k LW1vbnRoLWNyZWF0ZScgZnVuY3Rpb24gdG8gYWRkIGRhdGV0cmVlIGVudHJpZ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