From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e39e4fa0 for ; Fri, 3 Jan 2020 22:38:04 +0000 (UTC) Received: (qmail 2797 invoked by alias); 3 Jan 2020 22:37:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45221 Received: (qmail 10142 invoked by uid 1010); 3 Jan 2020 22:37:59 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f194.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.166.194):SA:0(-2.0/5.0):. Processed in 1.408643 secs); 03 Jan 2020 22:37:59 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.194 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ENRjnoY5qeS1lidVBGpDv1Mu6wgBSZIGL9JJdd3BzDE=; b=nJ9Aa83SLxonUZ334O7DioA7FOzyUiVqSu4sEeKwC1xJ+eSon0IE+isYQZ7+TLb3CQ UAuBJsrkEkCXCmHQAqxbCKMvfAXIg331tDmY6Z3vUMjwNus5g0SoFpMgMYXrKHFiKpT7 dKLcwMW2ioVTCnnNUU/sQNvDcn+Zsxxhd8NWqRwhUxc1c+/zavpjZ2bhHaUkz8yOEK9c jZQ80uJrCG/7D1CO4wEuJD/QokMQfE503JwraWWWCW/3aWFh6yt8JC6gDMJP0GLrVJAk 1MtMPHSOa+72JcvvsYK5A9WUpP5FQm38k/O0q0H3dXrMnMXUmgjsGzgofGmwHpWiDa66 12VA== X-Gm-Message-State: APjAAAXPmNxojUjDHYttVMHE8orRkdEk8IgT5H1WLMuhCwPyTGhpJIgx sXJFIpH9mUvitdvRx6m73zJsaj/wspMIADII1BUdiBir X-Google-Smtp-Source: APXvYqypc/RMVIL8N18+aoBMvcX6s2Q9QR6orYqFa/U/WHYQ/iH7TBr97ra2piHNbqe5XJiT5LfLdp8n2FB87m4sers= X-Received: by 2002:a92:d642:: with SMTP id x2mr76799191ilp.169.1578091045079; Fri, 03 Jan 2020 14:37:25 -0800 (PST) MIME-Version: 1.0 References: <63663202-4b1d-428a-b16b-5be1425e84ef@www.fastmail.com> <0C0C9775-59EE-4FBB-AB84-3E7FEF6E5024@dana.is> <186D63AE-2F2A-41C3-9E09-CEE0714E2B7F@dana.is> <12F64C78-BFA2-460C-80D4-921F22C72F78@dana.is> <1578063609.4581.6.camel@samsung.com> <20200103204856.bv6f3dkqhtrjm6vm@tarpaulin.shahaf.local2> <54205248-124e-4e9a-942f-7ff0626791a6@www.fastmail.com> In-Reply-To: <54205248-124e-4e9a-942f-7ff0626791a6@www.fastmail.com> From: Roman Perepelitsa Date: Fri, 3 Jan 2020 23:37:12 +0100 Message-ID: Subject: Re: Official plugin manager? To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Fri, Jan 3, 2020 at 11:07 PM Daniel Shahaf wrote: > > Roman Perepelitsa wrote on Fri, 03 Jan 2020 21:51 +00:00: > > This is just my personal opinion that I don't hold very strongly and > > my voice obviously carries little weight here. I think zshrc > > recommended by zsh should be very conservative. It should enable users > > to get started (basic keys must work, > > Debian does something like this: > > https://salsa.debian.org/debian/zsh/blob/debian/debian/newuser.zshrc.recommended > https://salsa.debian.org/debian/zsh/blob/debian/debian/zshrc This looks along the lines of what I was suggesting and what would make my life easier when I was switching to zsh. I'd suggest a few minor changes. - Inline the prompt definition instead of using promptinit. This makes it much easier for users to customize prompt. Abstractions are a serious barrier for beginners. - Move keybindings (everything, really) from the global zshrc to the user and remove fancy indirection from there as well (don't use terminfo and don't define auxiliary assoc arrays). This will show users how to define bindings. Also get rid of zle-line-begin/end hooks and stop changing terminal mode. Do something like this instead: https://www.reddit.com/r/zsh/comments/eblqvq/d/fb7337q/. This is easier to understand and more robust. - More comments explaining what things do and where to find docs. E.g., comments above bindings should say which key is being bound and what the widget does. It should also explain how to figure out escape codes for different keys and where to find the list of builtin widgets. - Maybe fewer completion styles. Seems like too much but maybe they are really important, I don't know. One meta observation based on my experience doing the same with powerlevel10k. 90%+ of users won't ever open the default config file. 90% of those that do, won't read any documentation that isn't included in the file itself. Roman.