From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id orzHFFj2VWQJvgAASxT56A (envelope-from ) for ; Sat, 06 May 2023 08:40:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +DsXFFj2VWR6cQEA9RJhRA (envelope-from ) for ; Sat, 06 May 2023 08:40:24 +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 E55763B149 for ; Sat, 6 May 2023 08:40:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvBX0-0005wF-0J; Sat, 06 May 2023 02:36:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvBWy-0005w6-Ve for emacs-orgmode@gnu.org; Sat, 06 May 2023 02:36:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvBWv-0004aS-So for emacs-orgmode@gnu.org; Sat, 06 May 2023 02:36:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 02344240298 for ; Sat, 6 May 2023 08:36:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683354988; bh=cMwgQVzX0mlPp6gXScXC95Va8xGn+0Mk54sORyTJ1U4=; h=From:To:Cc:Subject:Date:From; b=ByGOKqJYSHUoxgV5zpzu6V9qin6CKu0yVK6G6jV+V3zfc08CoM+fndI5RbU00B/B9 9KDydI3z3PUzd2kiGFW9hey3lAyhZ58sN+fOQZSqztQHgFQluJa5ro7xNXv5mmMxHB tfZfACZiMWWrFb/bY1dLA0UUu91TnGyGwkw8+4JR398KY8U3Tz2Sj5XbZlz8nnvKC5 5+Rp1tS/KrXx6uup2FJ7+xb8k83hAGksck2LF0gqv5LKgRfHN11aJCHY4GIp8M8D/F wqaHJ+ayWGGRjIITxOetJuy4BmguHSpOsf3BpnZYbs3oE8xXfr2CoiUuTVqGZObieh vsmjeiBiY1vFQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QCyWH4Pnsz6trm; Sat, 6 May 2023 08:36:27 +0200 (CEST) From: Ihor Radchenko To: numbchild@gmail.com Cc: Org mode Subject: Re: [FEATURE Request] inherit headline directory for `org-attach' in `org-add-note' etc temp buffers In-Reply-To: References: Date: Sat, 06 May 2023 06:39:41 +0000 Message-ID: <87a5yiarpu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683355224; a=rsa-sha256; cv=none; b=pJFwNywxkGE8tNPY3qrXxU1g3yVIGkz+QHWNz0+a65gAygjYCIdG9chyuqAi2p2OHcTGQ7 mDuRILpYwDP/DTVmtRr7jcO6TgzPzLY9vhBp80t3qfvh9A8OK6Mn222zcZEFTZykqwQHnL EI+XBDp6GxuVOSjT7OOSAL3JI4Be0Dcoq26syEcmKgu5fnPu/3flF0eGtiREIj+/Ky7r16 pj7qrdgmRmn1vyOGUxRWJqukc3JCsw7D+OEI1thp3eH+rcNjepPTbHJMXtR0jdNadjGyiR HqUrA647qJHZeJZXE/ZBdH6uoh0cAzNj3gYgIylFPbFvKNHdV1aUf/7X5mIZpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ByGOKqJY; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683355224; 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=pLAUsvZZBNUcJgBJVPoGGl/jisB96qF7TUOYTBxKsqQ=; b=JlZT8EMnEkjlf6QDil/ln+Fi2jv/4wWiEW3s9TnQutApEvJoy5ZguTPDzWHKBA5YltInI4 v1TSWbS5flWFSGbsPplxrnQ41TB2tk6Ohew16HOiB2DBK8elJkCGATmwSpwWZdWWrympIQ C/RArYetLyaazQTwCW66j3rPBMFnQm15tWisDzM8WcLDnMdjvV/eKCZ73CmD/iZdcJHtlo pu/VAo0TA/o6jTYTBfZRx/4UqoERbcNivQ/Knh7cZKk8Ue+xY/rRvdwkzBKNyxKM+Qm70A tKgChy+p8xLzsoVufxytquNPmn2g7JXS2hajM06lvXRYNmVWQ1rTkWcaaSGAgw== X-Migadu-Spam-Score: -9.99 X-Spam-Score: -9.99 X-Migadu-Queue-Id: E55763B149 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ByGOKqJY; 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-TUID: dZoBSCHkj8jh "Christopher M. Miles" writes: > I press [C-c C-z] `org-add-note` to add logbook note. It will open a new > temporary buffer. I want to execute command [C-c C-a m] `org-attach-mv` > to attach a file. But it will prompt me for org-attach directory. I > think commands like `org-add-note`, `org-clock` add log, `org-todo` > change TODO state add log, etc should auto inherit this org-attach > directory. So that user can do `org-attach` in the temporary log buffer. > > WDYT? Makes sense, but `org-add-log-note` implementation is not great. We should ideally re-use capture, which will give the right context without extra efforts. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at