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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17761 invoked from network); 21 Mar 2022 21:03:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Mar 2022 21:03:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647896594; b=lnQ+VX+JZQ4IlifvjaGupGa42nPTo30VQ9nCGsfL1ZQoNtP8bCM1aozHAn/MvXB8H1esB3koS5 HuJBFxa5yqcJELMDY+MtM1xMs68RfoF2HPnQz7UJieuMuBAqHRCsUmNIy4C5EYIH/WUo5l4b4B 5Tt8XLEQVcYVfZzNpcV97I/o1I2cpqIKTA9dhV4OxSkY21E2Cdxx0S0ZQufUfuoDioaySE6xNm RdVjPnwoGBIKvxcmAbUbCccDkqjV48vGG/pOSGz60HDdqKAOC7vju8TWskjlEM3swLR7XuKeHJ +XG2Y9BybSqumtwHzZn9MP4QktpWMGnxY5mlo5JscWIluA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yw1-f177.google.com) smtp.remote-ip=209.85.128.177; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647896594; bh=7D4vwTHsincr6y7KU/2sGysUafkDGYURFQl3VPl5pOo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=A8RqiMPWfGhP/YfycjYtYJM0YslrAlbn7iSFwzbJHQSNywqX3cdUQ6BH5GTYniPcIRUgZyugaL u6lAd1iqB9vQnPJ2KT3xMaYevV7xozo+SQQkKUXG9Juu721MrWjo/p0tTosDnuHtVWbM6SDBSv LvVz29UpdCyP6+4l/tAkFr1p9Uvst/SzJx1Ptv8KRWx6MN+Ls65shfFSBdmX/VoU78tIUF7q+4 HUPgLGATdEoB94zy8UvU/U5FDgt0YG6dhkxGdUhWGL5DV4GV/ds4AGyF/xIQiaV+ZC+W222P0H gFYZWRjkgppCA38Jjhr8f+naruneOYNBRsMz6JH479yUOA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version: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=+dKhe70hWBu4dipW5WXXGIItIOSOA6vWE9AqjLWEAqg=; b=rlKCzSE6tKkFDsJpLF6jijmslG D6cddAij4fpvixvcCRxsFnOlozOhGpBl3MsTzz2BGW+swQas8H1dZZoSEz9scz+1//f9Y+GL5KUN9 ZpvOH4rz07UN8xqEfUdUXQ7/29GyPJTgKoOKxz+RGB0BMy5/eTBMdjxiY7uGMDd7lCzu5+ONYhTZ7 qcmo1GkdoKz8lRnyjhsoFjQF9TQt/ySMCWuy29occYmE4xrBmacZ2MP+GhLBHO5DIMsVJ4a509Jjn zj88LRxsjnAPOghguEjA+w3d37ob/Gw+wnGT2J0Xp6q6h37uM7KcKMyIJ+pSb0ZwGPCs6Y2Z0yu7F IllM5nhQ==; Received: from authenticated user by zero.zsh.org with local id 1nWPBI-0002Sa-N9; Mon, 21 Mar 2022 21:03:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yw1-f177.google.com) smtp.remote-ip=209.85.128.177; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yw1-f177.google.com ([209.85.128.177]:42764) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nWMpZ-000L97-5U; Mon, 21 Mar 2022 18:32:37 +0000 Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-2e612af95e3so54394127b3.9 for ; Mon, 21 Mar 2022 11:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=+dKhe70hWBu4dipW5WXXGIItIOSOA6vWE9AqjLWEAqg=; b=3F7x4loqICEOmXUmT4yDWxxTC7ei9+kvFUufwBsZxc+XoqX3pceqY4YCm2xInW78Hb 5TQwUgo+UkJmpdF0TNuVRy66RUF8yD06roae6ojMgMrSoJ9/UGfobiWOI6GtYzvVyFUF Tm05SgaakLg5axSZ7ZkFwlifK5F2hy1ZkTb9MdmkDRJMth72MeJdZZKVsG24L5bG/xym b9agD72g26QzFHgl4kdRWprD9VssrC5WKtc/LoVTQ6LUI84wTc+NbZolzJCrqOgOVziw 5KgbYpi3cB//Up1Vx/xN2+DQy7E3P6k3GJpl2C/UN2m5ZKQeUkNTH8931d3h0sUygCFS EXZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+dKhe70hWBu4dipW5WXXGIItIOSOA6vWE9AqjLWEAqg=; b=g/ggmph2rThjYcPjxCZ4/Tx9zIKACRPgOZOxXd/zd0UWx/dMSztFmOYlniq34rzMAP GEYxa3lKB8klRQRGusLK1AOIj1qtGYKjeTeOF+U+I5ODNfRbmZ8IYi4FATmK67wiSsS/ d+9PRdOm51oObEVxyJfuz+A9SFaNpxCQRA2TCuD2sAqUZJAvrAKfG30Oa7vx+xyjW29Q 7xHTloR/eAAKyS2bE0aTp3v2fMnhM3ckfT72OXJ2SZJVF+g1PO2/UGbmWMNQnPKEX1hu gp5NOTo64mUbC/CM1C9CPJWDlUYRHc/0POMRP2dDhwISo/oL+PhOWYtIDXBNyyO+cgBS UZpA== X-Gm-Message-State: AOAM5322+oONMJGDDSKG8/6YSKtv5r8JgF4b8Xjnf4LnrIXZjhuUw661 GfQ7eBZVhAubKXntrI+yANwO+mNgPbmiS+5FgFEZpKJhlPwP4g== X-Google-Smtp-Source: ABdhPJxRu1eZIVFX5ogQ/ZrCNnZUgafbza08H4Qwi5iKiw/k/O1eOoTkh5Lw3mIOBk11vNc2xN8hZLOHnouWCzgUd6Q= X-Received: by 2002:a81:71c3:0:b0:2e5:8d77:1bfe with SMTP id m186-20020a8171c3000000b002e58d771bfemr25674221ywc.36.1647887556146; Mon, 21 Mar 2022 11:32:36 -0700 (PDT) MIME-Version: 1.0 From: Bart Schaefer Date: Mon, 21 Mar 2022 11:32:25 -0700 Message-ID: Subject: Prompt percent completion for truncations To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49871 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: This is cute but unhelpful: [ -- truncation from who knows where Furthermore, completion after that doesn't work right: % PS2=%[ parameter (list of parameter names elided) % PS2=%\[ (literally nothing: no suggestions, no beep) If we're going to include %[ in the completions, it should continue with %[< or %[> ... but my vote would be to just remove that because it's a deprecated form of %< and %> respectively. There is also this: % PS2=%\< replacement string % PS2=%\[\< number The latter is wrong, of course; both of these should behave the same.