From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OKn4FvmpdGVyQAEAauVa8A:P1 (envelope-from ) for ; Sat, 09 Dec 2023 18:55:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OKn4FvmpdGVyQAEAauVa8A (envelope-from ) for ; Sat, 09 Dec 2023 18:55:05 +0100 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 1FFE945660 for ; Sat, 9 Dec 2023 18:55:05 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=E3fcBQhQ; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702144505; 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=rcyBV2SGYCz6WrWL39RCYoFSP7eNvuWk/n1FOF0S7Zc=; b=Evkh3JtH7q5s6Y38Z5yey5Ecl9a+ploBu1OdobgMSNdq5OLAXI2UQ2ng0rnpcOs+i7RGxa HpCiAm7PPYckoXuEja/E12DP7s31rQ3wyuJcbFKJOq4B1yHSrOpdj2OHXdMuUlqJerLzZ3 OT1TFmeruidES7OjkGfbvHllScHFVnxpUG+a9dhuT/wR+ZC+bmvehC8q+d9+Ch2u4jCRri g2WUM9/DayyztF1vQl3NYEYZB3NU7Y6l4n3ZsApTaK5ybpUJ2k9ryf9Djqmx70Wl87Q1dk YsQT3NptM+kmWq5kwVzmpRsJy/1dY+npfFixsCZ2VAA9CdyRdlLSn694dulW0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702144505; a=rsa-sha256; cv=none; b=UVYjCi1F43HrQ0vGIUFdlYlaFIFp2gPpECkv4FPaIj9+sTxAaY30FcmT0QGS5o9XanWBLO fxALX+63mB4LXwZVigPW/TB7OpGoSy71Z7mC2bsDuuaU3sBETM638DZleHbfx1uAoEGJzo TBFtAibcdcbREPmS+XxvO3kGG2OSwGTIscZdIsV2FVlD29fMvuZwJDNmzVEMsTdTRxJBXb GYJaqCIXukVyrVIr6jaE7N7ZgY3PjDJBCzgM1euV7Z1tDbdplhOE4sJU/3qkN4+lCN6BFU 942Myl1psN+U3YBqqHb7bnM+og/Cdc7Yxv7cFpmGnJRI0eMTcmw0xZvjRocoCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=E3fcBQhQ; 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=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rC1Wu-0004zU-0r; Sat, 09 Dec 2023 12:54:20 -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 1rC1Wq-0004yw-2Q for emacs-orgmode@gnu.org; Sat, 09 Dec 2023 12:54:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rC1Wp-0002NT-46; Sat, 09 Dec 2023 12:54:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=rcyBV2SGYCz6WrWL39RCYoFSP7eNvuWk/n1FOF0S7Zc=; b=E3fcBQhQL9Ypfux11YR1 8+DyqEY/2Rv4Imsd10BXegwD/eXwSBmRzIgpZpi9A4BplKy5/pwfBp/nl8Eel54eWu6lzz6ZUal7D HQEAaPPFrakvG2yCftaCo5M6LW4fBfRomePrv2pLUU3KyLGWi5G1FCrB9EQUEJnvRsAjm+8eSpgnp YCyeDMR11kj3zVOws/VzpHkw4tJweEPD8mMY1tPwVFlEgKGKnDD8PpU0Bl6rTfShGjHF0zJ5wr9og 1CyRsy991m9MbubhnCXPxBSFJpOck4dYehD/YzmXtcApEKTtnVxZesR/DOhjBfzV9eWKslm2rcjuS fhjulyjhw+1vZQ==; From: Bastien Guerry To: Ihor Radchenko Cc: Adam Porter , emacs-orgmode@gnu.org Subject: Re: Provide org-insert-subitem In-Reply-To: <87v897qxgw.fsf@localhost> (Ihor Radchenko's message of "Sat, 09 Dec 2023 14:09:19 +0000") References: <875zg9trjo.fsf@bzg.fr> <0d03a623-14a5-4f65-8f12-bf749f934449@alphapapa.net> <87v897qxgw.fsf@localhost> Date: Sat, 09 Dec 2023 18:53:38 +0100 Message-ID: <87wmtngt3x.fsf@bzg.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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: -3.81 X-Spam-Score: -3.81 X-Migadu-Queue-Id: 1FFE945660 X-Migadu-Scanner: mx11.migadu.com X-TUID: uKRAZcOAQcDw Hi Adam, Ihor Radchenko writes: > Adam Porter writes: > >> Well, it's been a few years since I forgot to bump this thread. [0] :) >> I just rediscovered it after wondering why the command >> org-insert-subheading still doesn't have a default binding. May we >> revisit this? I find myself wanting to insert a subheading almost every >> day, and I have to "M-x org-insert-subheading RET". >> >> 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 on a list item calls `org-insert-subitem`, a new command. - 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. S-RET already "copy down" a table cells, so I'm really suggesting a generalization of the current keybinding. I like C-M-RET better than S-RET because inserting a subheading is like a "subkey" or inserting a heading. These improvements seem consistent. WDYT? -- Bastien Guerry