From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eETLNgDvoWLDrwAAbAwnHQ (envelope-from ) for ; Thu, 09 Jun 2022 15:00:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4EGYNgDvoWLICwEAauVa8A (envelope-from ) for ; Thu, 09 Jun 2022 15:00:48 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B6D039BAA for ; Thu, 9 Jun 2022 15:00:48 +0200 (CEST) Received: from localhost ([::1]:47688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzHmJ-0004Qa-9e for larch@yhetil.org; Thu, 09 Jun 2022 09:00:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzF8s-0007lK-GI for emacs-orgmode@gnu.org; Thu, 09 Jun 2022 06:11:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzF8m-0007ht-3U for emacs-orgmode@gnu.org; Thu, 09 Jun 2022 06:11:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 693E9240108 for ; Thu, 9 Jun 2022 12:11:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1654769505; bh=xPNz9/AGvuuAEEKvFIabAV33C6hCLJqcrlkVFEZvj5k=; h=From:To:Cc:Subject:Date:From; b=RBQtzGhdiLGHCxrtFhe+wLEu8tIqISukRTyWQJxwS+jzJzhvK+BlY7K6SODsjIBzl 39K5Z3nqsaQjEz9fcBF/EwyAR6cizqcTxmOrbSsksvHxyw/qQR0auqpuj4o8j6E7R3 OdgFQgMCIX/tNU9vfnDPCWiraE1rCtGS5pMrbpWWsZ7kyf8chQq7mK9FgrE/S2YHnY /6aVyHo58ZTrz7GRr/1Pivp5tME95JsHp+qajPH2FSd9a8IHVvNkrD8flCsqA2tyn8 TeAF6K+v7IKMzksdZLFmt2Oh1qP+rR+PbUKD5WRMmFI4fkoWgPklfhPjm2l9yFJZCS IQcAJra2T3QbQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LJfyS27Jbz6tnP; Thu, 9 Jun 2022 12:11:44 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Cletip Cletip Cc: orgmode Subject: Re: Org-attach for a directory References: <8735gfla2q.fsf@posteo.net> Date: Thu, 09 Jun 2022 10:11:41 +0000 In-Reply-To: (Cletip Cletip's message of "Wed, 8 Jun 2022 22:05:34 +0200") Message-ID: <878rq6no2q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654779648; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uq1F2Y0i67tPkjO/iowKwVBKcGN2iQyYH09cksgQ+vQ=; b=JAmVEyWjSPPja6ov+ph26iaiShecc2NsRS72aDUei9DFxXz5rCx7qJrF4iYtbaliBKChr6 ouWBjru3+XQKUjPlGxaXa9txcibFaByyGTob2/bU1WTw900ua/FmmuO2iddu0BxcB5ifE5 +2XNegTPkm/nRUPFUU0XtaxFqTGeV9n5zWsSIQ9fU2dz6+3E3oo0WwVnv3gAqyTZ+Rm5rB 1DEzueo/k12dwd5pbc/Wl1UmqJ2s8mzy8bFbejvbdkwUNRJ/AT64119zDixCEw2USKTHNb +a/1aEBxlgvWVKoQpVCvaKWL2/uzu/P8HhbGajWFG4/P56MO8kxNmEOhRJ/ZmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654779648; a=rsa-sha256; cv=none; b=e25X2fkkcoCWdm7uz0qpm/kuvtuV1oNx3mhkliFzOekErlV4aal9LZNRgfEfXmBAq3DgQe gHFs+tsgyc04bHYorSSdTeXoXoDbvnCNBLm57h2hvBkrNiSIiWh5vpDPMPKEkkUNUs5AH1 UhdX16SP50c6Ryr6a9mK3dWcrv7TBGwcxZmGBDJYFvpnQsgGBFjmv/AYYV/CBAIwZoCtAW 7LQP27fviYDIfO+I0mBx1TaqvcIe3U6YwzFgAp1NS+WxdT13Vub7SlZOnCetZ5csQIL+si OYDrBGqF95PO+a6Xj/mqveY8zdcgBFtyAc8+dHyTO6EQ379RpUNn2oaUjiXXuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RBQtzGhd; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RBQtzGhd; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B6D039BAA X-Spam-Score: -4.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: SjDZykt6Cmvj Cletip Cletip writes: > Thank you for your answer. You're welcome. > Your answer seems perfect to answer my question: I modify a function > of org-mode, and it allows me to attach folders and files to a > heading. > Unfortunately, it doesn't work (probably because of my version of > org-mode I guess) > > I have the following error: > make-directory: The file exists: > /home/user/sharedDirectoryPrivate/notes/braindump/.data/11e080/1b-7896-4f20-a24a-b9f45337e940 I don't know all the details of your problem. But if it gives you an error saying The file exists, I would say that the cause is that the directory you want to copy already exists in your attach folder. Could it be that in your case? Note that the 'copy-directory' function does not overwrite copied directories. > Just to make sure I understood correctly: you can, with the "copy" > method and the simple modification of the "org-attach-attach" > function, attach a folder to a heading of org mode? > If so, this is exactly what I am looking for, and this would be a > great help. Exactly. I wrote a new version of org-attach-attach, modified that part, as I told you, and added it via advice-add (with :override keyword) so that it overrides the old function. > To clarify my second question, I would like to have a folder system > with org-mode, and therefore only use org-attach to arrange my > documents, exactly like you. > Could you describe your workflow in more detail? Your use of tags for > example, do you put dates, etc. Now I have less time than I would like to go into the details, but perhaps some reflections that I shared here may be useful to you: https://list.orgmode.org/875yms7wys.fsf@posteo.net/ The strong point of my approach is to think of Org nodes and not the classic directory/file scheme. But for that to work well you must rely on a system that ensures a semantic search through the nodes. For me the answer is org-ql (and if you're a helm user, you have helm-org-ql too). Basically it's turning all your Org documents into a human-readable database, where searches can be narrowed down by tags, status, content, etc. Another important point is that this scheme works wonderfully well with org-capture. Best regards, Juan Manuel