From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SNIgM/UXe2WEWQEAkFu2QA (envelope-from ) for ; Thu, 14 Dec 2023 15:57:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gHtWK/UXe2WbcgEAe85BDQ (envelope-from ) for ; Thu, 14 Dec 2023 15:57:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bdUZEh4J; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702565877; 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=8dJdQYXJldM3PQBfkTkFrcuu4tGBJ6AriygNTP4ZhLY=; b=qalj/NA3826aSbqmwW2/O0zAYKky1V+jKCOTlRSJQKRa5Dip9pfbvjzu/ypc9U5NUdgp3b ApsT6Asg/GvEqvX9ETS4CXdj6TTiMzp1PoDlAXnv+Qexxv17APIl9F98Ph4zbtCcS4WAZY X4oBEdHuBPWbc5TZ5OD//KmYIbYTG/phuwQW8qTz7yPCmsDmsDbhwWD188r2oOTSoTEUM5 YjtcMSxCQ+9h54+pNzSw3/T5VIqcNWuEvpjI6bXoEkREKHhyM+K4MxNHFbdttNZuSizjQo 1DJDlyS+fhFDpTeC4SpNOOVT2S7nL73+OSLV3ea957ZNwPbi/Wq+bXQNH1XR4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702565877; a=rsa-sha256; cv=none; b=VHMzDA7YQqxs47AuMU+4YSZe8gBSADN+86kMvT74LSObEjBYLYn8+8I7Yto7qoW+htaalg Q91HhTt2jsS4HfhhPE9R9VYeuAl0mo36g98GW7SRHG8+EfpTyxh5mcw2jC6dzTjQzhjTbh gFwsdGVuOhc9c3YyA/8eYRzXGV3ZSEak6vU+zip8BaOMVq7Su8Jn1TcMRiZ8KVs9uRHCgO uQW9qJDKHiiT5tHp8Jsl1Ttm0aCMpQkRH8b6sCxNLvFNMTmm19fcd1+PTeDMUqI7VnNC5m 6lB/D0gDdAZQII9UtCEY1pmhzWCmG8yrcBcqhY34t6eMan3Pa8mEvY49gCHXAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bdUZEh4J; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 8D2E747662 for ; Thu, 14 Dec 2023 15:57:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDn9J-0005Az-4v; Thu, 14 Dec 2023 09:57:17 -0500 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 1rDn9G-0005AU-RC for emacs-orgmode@gnu.org; Thu, 14 Dec 2023 09:57:14 -0500 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 1rDn9E-0005wx-55 for emacs-orgmode@gnu.org; Thu, 14 Dec 2023 09:57:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1278D240104 for ; Thu, 14 Dec 2023 15:57:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702565830; bh=uiOkkRPnlENG8B49px8U6UljyZij+crUGjPG6X23awo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bdUZEh4J2CPb+CaFT019IDfvOm6UTDjdKbSFBHPeVcuK+WURGeIZCl7zlbrRCEmkO G5ZvU3QWm44t8T7M4zRxjVhkEzY4kZcDTOHsxrkCGW/wHBKO9Rm7ELHQAcgVtTfRSv EhMIF9M12ydtVJA9L2mTDoqPJEiyCxuOvkDAxX+BGd0Cqj5cb10ZOCpQVmkCnrJBP1 jaMYIfxcCWNaHP1BYifExO9j+XxzxMunWUksWROAjfAKpe6H1xEeTbCwrhRjX3l32G G+ofhD1/W8Li+LMgSTvdcnWlj1kMmg6bSOzyQ9QVTlxdDUzOY5FS7CPfOQRKL59YIw F/MP8cDPfMWKw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Srb6Y1tpXz9rxL; Thu, 14 Dec 2023 15:57:08 +0100 (CET) From: Ihor Radchenko To: Bastien Guerry Cc: Adam Porter , emacs-orgmode@gnu.org Subject: Re: Provide org-insert-subitem In-Reply-To: <87wmtngt3x.fsf@bzg.fr> References: <875zg9trjo.fsf@bzg.fr> <0d03a623-14a5-4f65-8f12-bf749f934449@alphapapa.net> <87v897qxgw.fsf@localhost> <87wmtngt3x.fsf@bzg.fr> Date: Thu, 14 Dec 2023 15:00:15 +0000 Message-ID: <87edfoq16o.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_H5=0.001, RCVD_IN_MSPIKE_WL=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.38 X-Spam-Score: -9.38 X-Migadu-Queue-Id: 8D2E747662 X-Migadu-Scanner: mx11.migadu.com X-TUID: 2TnJ60OCIvos Bastien Guerry writes: >>> Of course I could bind it myself, and in one of my configs I have, but I >>> still think it deserves a default binding, even if it were to be a >>> "smart" command that worked like org-table-copy-down when in a table and >>> does org-insert-subheading otherwise (because I still think that "S-RET" >>> is an obviously appropriate binding for this command). >>> >>> What do you think? =) >> >> I think that it still makes sense, even after all these years ;) > > +1! Thanks for reviving this thread. > > I would suggest a larger set of enhancements here: > > - S-RET on a heading copies down the heading. > > For that we would need a new command `org-clone-subtree' bound to > S-RET that would immediately copy the heading at point. This command > would accept a universal argument to allow for a number a clones and > two universal arguments for adding a time shift. > > `org-clone-subtree-with-time-shift' would continue to be bound to > `C-c C-x c' but would be really a call to `org-clone-subtree' > ... > S-RET already "copy down" a table cells, so I'm really suggesting a > generalization of the current keybinding. This makes sense. > - S-RET on a list item calls `org-insert-subitem`, a new command. Did you mean `org-clone-item'? > - C-M-RET on a heading calls `org-insert-subheading', the existing > command. > > - C-M-RET on a list item calls `org-insert-subitem', a new command. > > I like C-M-RET better than S-RET because inserting a subheading is > like a "subkey" or inserting a heading. I tried to play around a bit with various flavours of X- commands and I am not sure if I like C-M-RET: 1. For org-insert-heading, we have multiple variants that allow inserting heading at point, after current subtree, and the same variants for TODO heading. We don't have enough key combinations left to allow all the equivalents for subheadings. 2. With `org-cycle-level-after-item/entry-creation' set to t (default), it is actually very easy to create a subheading/subitem using the available C/M-[S]- commands. Just do M- . And the same will work for inserting todo headings. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at