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=-2.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17605 invoked from network); 13 Sep 2020 22:21:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Sep 2020 22:21:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1600035712; b=zRVfrPbG34kzT0CyrDM/QR0ucRDGyQQkmuiG40gcTtZ+GJPlXGgyCIDpVu50mS48OsUR7/xMQI +5s4hgWWbr9E4XhloYdDplGs102w5UGCRp+X3eCQVqvsn/vnazkIQ9vjVXGDNhHzcHlImiqLqO t3CKk1SN1QX6s4FYp37/mEpjBTNI6mSdylNAd0FlhHauB/n46TBP39S1O7nxA1gHPwNPBWpwVR T3T/c26lBdgxSpYQ/m2bu+2jsD+IStLZXxqj3904+BA2+fRkRy6qwMo7RYjlInurUIvxGCfJa5 vwMshOmH1x7YNnPNTQOOmgeyndJUBdX5R+ohPpF+P882HQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtp.andrew.cmu.edu) smtp.remote-ip=128.2.157.39; dmarc=none header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1600035712; bh=WFo5exbJ8u8MzTJqnsaqQZmYMf2slJkC42bBE931D0k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature; b=UB4TLMteNBYEbHwyb1C3NYdo8G1L4aH3MBL697WoRiZWMN/VS8mbZIa2AgqhrjjyrZJC4rKKQm cpOBXeHTZtQSKAXH+WscP/G728xebdlNnBp5UIW3c4KIAQUUhCBshHAHE88Zq1+dQNw+42jZdD eEYhT8gIiFZNFcV82AQrPT4wEplnzPJxeMyRbi7ic/N5yoOoBi5U4dm8lvoiAAt48Ue2ps5M7F JQXp58/R/UxD8qmQVqFPh8Kcn31dyNNTus2RkTdZ/Ws/twAN28+pdGd9dYI1MecFO9d9sXhljY T8+51HHFprJl3tiFwERtOd25b63csoTFdeRGd0LJJCvUqw==; 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:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=gPTkqAEmKAYUmMlJZyjRz0oBoMDw2+S5O1LxM68tpeE=; b=MQtEBqUqKZhRTLe6QOhc5HIBgv iWuE8YeGJrJ1ItBua7rcKwa8FlHYIX/2yR6k9pDXmn04l2afDmKwjRp0NxM3SzInX98Rq2K7DPblk YvMhJc3FlC9wY0N5i1bpwc7gBIlYl5ZD6ykLoX8qhWJZxABV9xq2BAwhi3M58HgfwfPaMjtzzddRO T0e6iuX2wuEDE/6ENqaeBVSMcYv2b7Vpw7It18BvaXhWTyo+Wo3zfr4fgHgHpBsjk61EHmbbxoC9N Q6taxfiIzwS6i609hKdgsywWMs75+oiRBcNm8il5evl3jIZh4Qz667aTP4v3AB+wWKwGq+dYgxNly jClTAheA==; Received: from authenticated user by zero.zsh.org with local id 1kHaNb-0008rg-ND; Sun, 13 Sep 2020 22:21:51 +0000 Authentication-Results: zsh.org; iprev=pass (smtp.andrew.cmu.edu) smtp.remote-ip=128.2.157.39; dmarc=none header.from=gmail.com; arc=none Received: from smtp.andrew.cmu.edu ([128.2.157.39]:33822) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kHaNH-0008j4-IP; Sun, 13 Sep 2020 22:21:33 +0000 Received: from andrew.cmu.edu (GI.MATH.CMU.EDU [128.2.112.77]) (user=gi1242 mech=GSSAPI (56 bits)) by smtp.andrew.cmu.edu (8.15.2/8.15.2) with ESMTPSA id 08DMLMh6015795 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 13 Sep 2020 18:21:24 -0400 Date: Sun, 13 Sep 2020 18:21:22 -0400 From: gi1242+zsh@gmail.com To: zsh-workers@zsh.org Subject: Use external tool if there are a large number of completions Message-ID: <20200913222122.GA4031@andrew.cmu.edu> Mail-Followup-To: gi1242+zsh@gmail.com, zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Original-Envelope-Sender: gi1242+zsh@gmail.com X-Scanned-By: MIMEDefang 2.78 on 128.2.157.39 X-Seq: 47379 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: Hi All, 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? Thanks, GI -- Experience is what a comb gives you after you lose your hair.