From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Allowing multiple date trees in a single file Date: Sun, 15 Jan 2017 17:46:50 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1140ea007cdb08054624d18c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSnxZ-0002vi-0V for emacs-orgmode@gnu.org; Sun, 15 Jan 2017 11:47:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSnxY-0005pl-7d for emacs-orgmode@gnu.org; Sun, 15 Jan 2017 11:47:13 -0500 Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:33687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSnxY-0005ph-29 for emacs-orgmode@gnu.org; Sun, 15 Jan 2017 11:47:12 -0500 Received: by mail-io0-x22c.google.com with SMTP id v96so77135499ioi.0 for ; Sun, 15 Jan 2017 08:47:11 -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 list --001a1140ea007cdb08054624d18c Content-Type: multipart/alternative; boundary=001a1140ea007cdb06054624d18a --001a1140ea007cdb06054624d18a Content-Type: text/plain; charset=UTF-8 Hi everyone, here is a patch that allows to have multiple date trees or iso-week trees in a single file by allowing to specify the property name that will be used to place the tree. The property name can be set in org-capture-templates, individually for every template if so desired. I use that to have three different kind of journals in a single file. Any objections gains me to merge this change into Master? Carsten --001a1140ea007cdb06054624d18a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi everyone,

here is a patch that allow= s to have multiple date trees or iso-week trees in a single file by allowin= g to specify the property name that will be used to place the tree.=C2=A0 T= he property name can be set in org-capture-templates, individually for ever= y template if so desired.=C2=A0 I use that to have three different kind of = journals in a single file.

Any objections gains me= to merge this change into Master?

Carsten


--001a1140ea007cdb06054624d18a-- --001a1140ea007cdb08054624d18c Content-Type: application/octet-stream; name=patch-datetree Content-Disposition: attachment; filename=patch-datetree Content-Transfer-Encoding: base64 X-Attachment-Id: f_ixyvwksv0 Q2hhbmdlcyBpbiBtYXN0ZXIKCU1vZGlmaWVkIGRvYy9vcmcudGV4aQpkaWZmIC0tZ2l0IGEvZG9j L29yZy50ZXhpIGIvZG9jL29yZy50ZXhpCmluZGV4IGY2OGVmNmUuLmQ1OTk3NmQgMTAwNjQ0Ci0t LSBhL2RvYy9vcmcudGV4aQorKysgYi9kb2Mvb3JnLnRleGkKQEAgLTcyNTMsNiArNzI1MywxMSBA QCBzZXBhcmF0b3IgbGluZS4KIEBpdGVtIDpraWxsLWJ1ZmZlcgogSWYgdGhlIHRhcmdldCBmaWxl IHdhcyBub3QgeWV0IHZpc2l0ZWQgd2hlbiBjYXB0dXJlIHdhcyBpbnZva2VkLCBraWxsIHRoZQog YnVmZmVyIGFnYWluIGFmdGVyIGNhcHR1cmUgaXMgY29tcGxldGVkLgorCitAaXRlbSA6dHJlZS1w cm9wZXJ0eQorSWYgdGhlIHRhcmdldCBpcyBpbiBhIGRhdGUgb3Igd2VlayB0cmVlLCB0aGlzIHBy b3BlcnR5IHdpbGwgYmUgdXNlZCBpbnN0ZWFkCitvZiBEQVRFX1RSRUUgb3IgV0VFS19UUkVFIHRv IGlkZW50aWZ5IHRoZSBvcmcgZW50cnkgdW5kZXIgd2hpY2ggdGhlIHRyZWUKK3Nob3VsZCBiZSBi dWlsdC4KIEBlbmQgdGFibGUKIEBlbmQgdGFibGUKIAoJTW9kaWZpZWQgbGlzcC9vcmctY2FwdHVy ZS5lbApkaWZmIC0tZ2l0IGEvbGlzcC9vcmctY2FwdHVyZS5lbCBiL2xpc3Avb3JnLWNhcHR1cmUu ZWwKaW5kZXggY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