From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QAL7EmHSFGeETQAAe85BDQ:P1 (envelope-from ) for ; Sun, 20 Oct 2024 09:50:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QAL7EmHSFGeETQAAe85BDQ (envelope-from ) for ; Sun, 20 Oct 2024 11:50:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j8sN7BdM; 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-Seal: i=1; s=key1; d=yhetil.org; t=1729417824; a=rsa-sha256; cv=none; b=qzjWiBa9pMe8t4QCAeHvCBhPl09s9G8/3HEWbQaIlqkD1M2G4+W+Lbt1cNGvXxH9grG/ON Gb6svcq+YoDS28cHQCj3+5WTzy5tOg8W11UbiiA4PFZyzXybX4Xdv/qfZLgxU4sQ2OzhQL SCCzjrtC2Qp6s28P063wwDlD2YUbI5XvN1qeqds9GC6hCz4aXMXmZjbup8q14lDoQjcClu zSjAdEbsBIxeF2rnQlkFPbKPW+S0JA1DMMHBPOEkp5X7meX7h44bFLZ/Mcuf2s5pZKcIDn DcOSKp9oBJFfCTCyT2EXR+LpbY1GXeJjynKlVtYiHFLM3Y2GsumV2quJPmKCFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j8sN7BdM; 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=1729417824; 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=ZDMdAGJhO7+kfTnHGB86qj3A7EmYHl4GfmahuRvBYIQ=; b=jhe+/dgzuPcsCl/PpFDvw9sl3HHgS7Z3awwTeZRpGAPSNc6brF0jPejhXIB8+wg42r4wLK M945Vb2kCvf0RIe3yl+GvZJmJCNS4XYlhV6FnT8Thyao9M8Z3xIz9+7gYcKvdMEcLAjm6x 3vEYcRoy+gV5jv4jnVvya9fM5hz7QMdQ/947Ducf94LEQ7yElGNFiH6Xi777OgHRN5XuiE ZQvFnVzVSWWgPISfdzLfHtMjWzlOTRxJbH1l6hkzGrJYucXFBZPhzXyLuFP+pBGjfisD0n 29K0Fsaq2sjkMQpzwwcotBkgzAVE/8MUtIF9XUgw7b5GdRMAvBk3klpAo5NPGQ== 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 340E24385 for ; Sun, 20 Oct 2024 11:50:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2SZD-0006eT-5v; Sun, 20 Oct 2024 05:49:43 -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 1t2SZA-0006eF-M8 for Emacs-orgmode@gnu.org; Sun, 20 Oct 2024 05:49:40 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2SZ8-0000Ku-Ic for Emacs-orgmode@gnu.org; Sun, 20 Oct 2024 05:49:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7096F240027 for ; Sun, 20 Oct 2024 11:49:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729417775; bh=2CjKa9DcfO2NFJfrvX0AZ68TXqSt6jD/ieFWXkFWes4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=j8sN7BdM0bZMlyr1GfUF1UErvnehLrOBLu0Z6xH4irPQPQrziIzPU4zH3VFFl7NGQ QtaicOL/VzUX/nyNPMxcmobYvjSfco/Ajo6ihRcic8pfWJzuapGAJeRFzisOxujYHs Ilv88e9+yweXa6PUDJgfuCgxu/mlYjf2mdytiM+vR7hf+hcvWr2jOnWqJ1Wfxc/3zl aTbHVt5Lw1uu6G7VxG9EIuCZOoh2rFJQ7gszdvsJSs/GhMpXOQ6vtefc1+e1XptFeW nyji4J7OgLeToUJ93MXo2IeV5pcXJX3Qxn1LlsU39GGpdsrcRSBdgMYSff0GwsqTnY U5H6xXXmaJjSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XWYZ657PCz9rxF; Sun, 20 Oct 2024 11:49:34 +0200 (CEST) From: Ihor Radchenko To: Charles Choi Cc: Emacs-orgmode@gnu.org Subject: [RFC] Insert reference to Org table cell or cell range from region selection (w/without mouse) In-Reply-To: <95CE1447-FC08-431A-9CA1-83B4C3F77BA7@gmail.com> References: <95CE1447-FC08-431A-9CA1-83B4C3F77BA7@gmail.com> Date: Sun, 20 Oct 2024 09:51:22 +0000 Message-ID: <87zfmzqezp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.18 X-Spam-Score: -1.18 X-Migadu-Queue-Id: 340E24385 X-Migadu-Scanner: mx12.migadu.com X-TUID: 7CVQKJVN8Ad/ [ Changing subject line, so that the thread is registered as a proper request for comments ] Charles Choi writes: > I recently made a blog post describing a means of calculating an Org table reference from a selected text region or rectangle. I think this feature is compelling enough to put into Org itself and as such I am raising this idea with this group to gauge interest. > > This idea and its implementation are detailed in http://yummymelon.com/devnull/referencing-org-table-cells-with-text-regions.html It would be nice if you summarized the feature request in a few sentences in the email. The link may or may not be available for future readers in 10+ years from now. AFAIR, the idea is roughly the following: 1. Currently, users need to type table cell references manually in table formulas: #+tblfm: @1$2+@5$4 2. Manually counting cells is not fun 3. We do have M-x org-table-edit-formulas where you can use S- to change the existing cell reference, but it still requires having a reference to start with 4. The proposed feature is inserting a cell/range reference from mouse click/drag, as it is done in GUI spreadsheet apps (like Libreoffice calc) > I'm happy to respond to any feedback on this idea here. Also to > clarify, I'm much more interested in feedback for the idea and less so > on its current implementation. It is my hope that if the idea of it is > appealing enough, an optimal implementation can be made by this group. As we briefly discussed during the meetup, I believe that we can integrate mouse support into M-x org-table-edit-formulas: - when in fedit buffer, clicking/dragging on the original table should insert reference into the formula buffer Your idea about a command to copy reference to cell/region at point also makes sense (be it a context menu entry to a simple key binding/M-x command) > ... an optimal implementation can be made by this group I was hoping that you will be the person sending patches ;) At the end, you were interested enough in the feature to write the blog post. So, you are probably the most motivated as well. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at