From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WHM2OslyMmXxGAEAG6o9tA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 14:30:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WHM2OslyMmXxGAEAG6o9tA (envelope-from ) for ; Fri, 20 Oct 2023 14:30:02 +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 7D35441F87 for ; Fri, 20 Oct 2023 14:30:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WUIz3zN6; 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=1697805001; a=rsa-sha256; cv=none; b=NS2Mi5R/kFozJuXoG8PifuSbnxH8TAGwWEq9pPpUtWrNCUMZBw1JgTmwtV1y2ak0Iybd3q yxXGsb/KFAI8LYSxFt1jGI9g4OTDp+bj+KOJYaUBpqYiQmWSs7lbwrYLmrETqR6HJLRAKp OdJoXCmQMjwhkxEPoBvs49fqGbrxhSoEYZXBHS+OFxqq5znzmBFsae5DeRuqwd48u9THXV Px66exFQAUFV/lHBH22tBRXJ6FWZcwftRrkQ16xGozoip5QI1O24DHrKiH/Nqeju2GUJkF m5dTvcEnmZmQcV51mUSedl8hLGJM8OlzrfU4ZOqpLVqcowUwLPXGZjRLcaqRjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WUIz3zN6; 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=1697805001; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UcaW5a0B7ewGa8vJYqfH0WfY2lhAf0q4DtBvNMkgPk4=; b=Zh9fZ5K5y2dcfiaTq0L4b7gENgUu+z6lCCEYZYxd4xk5ahXrA3C5Yh0XkxrzTAbKZZB6as /93uy+4GNfBP0jki2VWhUfjHeZzkTj7wjdULi1I7CGMsmowWRtMlwJs4Hcsfobcy606va9 Q2TvU8Y0Qi5LmybA5dx+hY12j8nj7z1mkzlafCyrGlNvbAF4iQjvR08DZcfifqGqJfLPfb CGIFAHP3iH9KlG08my61xDIV6cz7Ty0CrzOL+DMXn8GPbbYLBtCvWeIFTDuy76kVMAzmsP DDAoLmItftIdRLij9H3mcnGXzP973fr6jt/o383+KXk99yq4UXf/GKtznbZkfw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtocp-0000bw-OW; Fri, 20 Oct 2023 08:29:11 -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 1qtoco-0000bk-Ei for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 08:29:10 -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 1qtocm-0002St-81 for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 08:29:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 31726240027 for ; Fri, 20 Oct 2023 14:29:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697804945; bh=KRok4AzLJbwYQvMvf6fF7I55tuS583P9LkY2asWNyzs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=WUIz3zN6tfsvWJmrPQP8NyYRAS+5cWkf7o4dC+2o3l6Ea6hKS1kHkRtjunNYJTxdS GQ1gMZUQ0+xnB0p7R3pdZg4Brmnldv7ctANIdvWnDp7eCcYAaN5wvSoizEQXwfMMpC VFwiBKPfz01OBijsQGRcZe5d5o1Gx5i1VtplGElaM+ly39UOaPXiWfz8CQ5gM10H1B +jRa1JE8vfll5oVCuW/E4NHiRwkoN4bZZsiNGIPf5STXwvU5kycTp9lqFuv3sc5RFJ dc0F7GavE5kWMvSJ5bZ8mxvwrooY1yh5jT6N9+ufmVTXUwxFMpR2J6AW1LiZP37zoz z8IOZ/FE74kHA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SBkR45MjQz6twQ; Fri, 20 Oct 2023 14:29:04 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Salih Muhammed , emacs-orgmode@gnu.org Subject: Re: Consider removing newlines from org-insert-link help message In-Reply-To: References: <87o7gxbx66.fsf@gmx.com> <87h6mpfrk2.fsf@localhost> <87h6moncj6.fsf@gmx.com> Date: Fri, 20 Oct 2023 12:30:48 +0000 Message-ID: <87fs25bhmv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H5=0.001, RCVD_IN_MSPIKE_WL=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.36 X-Spam-Score: -6.36 X-Migadu-Queue-Id: 7D35441F87 X-TUID: 7kGsIe7GXZ/W Rudolf Adamkovi=C4=8D writes: >> What about replacing it with shorter description? > > +1 for making the message shorter, > > ... and while on it, perhaps also a bit clearer. Patches welcome. > - the key bindings are not propertized, and > - the entire buffer is writable. I see no obvious downsides. May as well. >> Insert a link. > > How about we say "Insert link:" in the minibuffer and drop this sentence > altogether? Grammatically, the minibuffer prompt would be similar to > 'C-x b', which says "Switch to buffer". Currently, the minibuffer message is simply "Link: ". "Insert link:" is also ok. >> Use TAB to complete link prefixes, then RET for type-specific >> completion support. > > How about: > > Type TAB to complete link types, then RET to complete destinations. Maybe "Press" rather than "Type". >> Stored links are available with / or M-p/n (most recent with >> RET): > > Could we show the default value in the minibuffer, as > > Insert link (default [...]): > > and then drop the "(most recent with RET)" comment? We may, but the default link might sometimes be long. Not sure how it will look like. > As for the rest of the message, ... actually let me stop here and zoom > out a bit. The optimal solution here would be to remove this entire UI > and leverage standard Emacs completions. Org could simply ask > > Insert link (default [...]): > > in the minibuffer and then provide intelligent completions based on the > current input. If that can be done, then Emacs can handle the rest. It > can show completion candidates, handle past/future history, and more. AFAIK, this is already done. We already use `completing-read'. The UI is there historically and in addition to the normal Emacs completion. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at