From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UGf9Ca981l9DZgAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 20:42:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eOKzBa981l8BKQAA1q6Kng (envelope-from ) for ; Sun, 13 Dec 2020 20:42:23 +0000 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 B0BA39403EB for ; Sun, 13 Dec 2020 20:42:22 +0000 (UTC) Received: from localhost ([::1]:59970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koYCD-0006jN-KQ for larch@yhetil.org; Sun, 13 Dec 2020 15:42:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koYBg-0006jE-I2 for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 15:41:48 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:39961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koYBe-00042m-KB for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 15:41:48 -0500 Received: from localhost ([::ffff:197.157.34.185]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000308F8.000000005FD67C87.00005FC9; Sun, 13 Dec 2020 13:41:43 -0700 Date: Sun, 13 Dec 2020 23:37:37 +0300 From: Jean Louis To: pietru@caramail.com Subject: Re: Org Capture Menu cannot be fully viewed Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B0BA39403EB X-Spam-Score: -0.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: px1i/AsG5d9+ * pietru@caramail.com [2020-12-13 21:28]: > > Why not provide completing-read for Org capture templates? That would > > solve the problem fully. > > I think it might work fine as you say. Is that similar to what > "%^{prompt|default|completion2|completion3...}" does? Or something similar? > I also know of icomplete. I suggest that you install package ivy that you see how it works. Then you could try find-file or open file function to see completions. You can try evaluating this here: (setq collection '("I think it might" "Is that similar" "Or something similar")) (completing-read "Choose: " collection) You may then use TAB or C-j to complete among various options. ivy and helm packages (maybe) enhances that and allow you to type just "som" to reach to "Or something similar" or "think" to reach to "I think it might" and offers basic relevance search if you use few words. Standard completion may use joker symbol * Choose: *thingTAB would expand to "Or something similar" That is good way to go in Emacs if you have to chose among large number of items of anything. Jean