From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10687 invoked from network); 14 Sep 2020 12:29:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Sep 2020 12:29:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VKM4eDcV4obOsmNqSM49DhPnqt+lm1k+YKm6liLzFsM=; b=w3kpYb5OfI24qLCn2Heu6OuCrs 7cPYiE/TH0yL8Hwz7xFaI82YgkKyYMZ2UBkcyw6SBypo91pmnyrfQz8MzarYliXN2Wi/6FUDHpm01 d/ehm/yM64H/GB3khoXjxLzJdjeTqxmZ5WQ3vxgRXj+6yDo78Fu8vRT0/xDNtDSGjWlwUCk/yjDnV svrHFA+d+FxpJNCXP8fXsIiJhKvkhbhxWJjzGuZXh7QNrbylJUjjAvDFH7eoYmHu6QW1gxGyls34a 8/sZtOCUuVkCjZa0L54FXxm7q1JohoIp0bU06xOJLa0rI4Nu8LhT9EsM0uXI9u2dRrnBNYXs0BoDU dorCsnrw==; Received: from authenticated user by zero.zsh.org with local id 1kHnbn-000O4n-Te; Mon, 14 Sep 2020 12:29:23 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kHnbV-000Nvz-Pq; Mon, 14 Sep 2020 12:29:06 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1kHnbU-000OJG-VR; Mon, 14 Sep 2020 14:29:05 +0200 In-reply-to: <20200913222122.GA4031@andrew.cmu.edu> From: Oliver Kiddle References: <20200913222122.GA4031@andrew.cmu.edu> To: gi1242+zsh@gmail.com, zsh-workers@zsh.org Subject: Re: Use external tool if there are a large number of completions MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <93448.1600086544.1@hydra> Date: Mon, 14 Sep 2020 14:29:04 +0200 Message-ID: <93449-1600086544.971822@dbC1.s54D.QHfs> X-Seq: 47388 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: gi1242+zsh@gmail.com wrote: > I was wondering if it's possible to use an external tool if there are > more than a certain number of completions. Sometimes there are thousands > of completions (eg apt install), and the keyboard interface isn't too > efficient. However, things like "rofi" handle this very nicely. So is it > possible to invoke a custom command (e.g. rofi -dmenu) if there is more > than (say) half a screenful of completions? Have you enabled and configured the complist module. It has some similarities to tools such as rofi in that it can immediately present a screenful of completion matches and allow one to be selected. They keys are configurable and I find them to be fairly efficient. Oliver