From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Could ivy minibuffer stay where it is? Date: Fri, 6 Nov 2020 18:36:00 +0300 Message-ID: References: <86v9eibupz.fsf@gmail.com> <87pn4qldf2.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15176"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: Oleh Krehel , emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 06 19:53:54 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kb6rx-0003nw-Gs for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 19:53:53 +0100 Original-Received: from localhost ([::1]:45138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb6rw-00021w-Gt for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 13:53:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb6qa-0000Ma-Lm for emacs-devel@gnu.org; Fri, 06 Nov 2020 13:52:28 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:59645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb6qY-00081D-W4 for emacs-devel@gnu.org; Fri, 06 Nov 2020 13:52:28 -0500 Original-Received: from localhost ([::ffff:197.157.0.43]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0012.000000005FA59B54.00002569; Fri, 06 Nov 2020 18:52:04 +0000 Content-Disposition: inline In-Reply-To: <87pn4qldf2.fsf@tcd.ie> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/06 13:51:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258845 Archived-At: * Basil L. Contovounesios [2020-11-06 18:21]: > Jean Louis writes: > > > Oleh, is there a setting for Ivy that minibuffer stays where it is? > > > > You may see the difference between: > > > > counsel-M-x > > > > and > > > > helm-M-x as this one creates 2 buffers, one for selection while > > minibuffer stays where it is. This is my preferred way of work. As > > user is typing and should not move his eyes or focus from familiar > > place in this case minibuffer. > > > > Could you consider adding such option that prompt remains in the > > minibuffer while selection is above minibuffer? > > Ivy was explicitly designed with the minibuffer in mind, just like > built-in minibuffer completion. That said, it's possible to customise > where completions appear. For example, in-buffer completion is > displayed in an overlay at point, not in the minibuffer. > See e.g. the following for more information: > > - https://github.com/abo-abo/swiper/wiki/ivy-display-function > - ivy-display-functions-alist > - ivy-display-functions-props > - https://github.com/tumashu/ivy-posframe That is it! Definitely good solution. Can that function `ivy-display-function-window' be included in ivy on GNU ELPA? This is to build applications based on GNU ELPA package, to minimize any outside dependencies.