From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9693 invoked by alias); 30 Mar 2014 19:55:24 -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: X-Seq: 32510 Received: (qmail 17612 invoked from network); 30 Mar 2014 19:55:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Joep van Delft Subject: Re: Introducing zsh-hints Date: Sun, 30 Mar 2014 21:21:00 +0200 Message-ID: <20140330212100.2bde740c@xs4all.nl> References: <20140329122828.10070fb9@xs4all.nl> <20140329165508.6896b7ee@xs4all.nl> <53382770.6060008__48065.1685772047$1396191048$gmane$org@eastlink.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: brln-4d0c827b.pool.mediaways.net In-Reply-To: <53382770.6060008__48065.1685772047$1396191048$gmane$org@eastlink.ca> X-Newsreader: Claws Mail 3.9.3 (GTK+ 2.24.22; i686-pc-linux-gnu) Hi Ray,=20 On Sun, 30 Mar 2014 07:17:20 -0700 Ray Andrews wrote: > > > https://github.com/joepvd/zsh-hints > An interesting looking project. But what is 'the buffer'? Does this > work at CLI? The purpose is to get a bunch of information when in the middle of composing a command (AKA editing the buffer). Here, pressing displays parameter expansion flags.=20 % for i in *; do print ${(on @ =E2=96=B6 array elements c =E2=96=B6 count elements of array/string k,v =E2=96=B6 returns keys, values of associative array u =E2=96=B6 unique, deduplicate entries A(A) =E2=96=B6 create (associative) array, useful with ${(A)...=3D...} s:string: =E2=96=B6 field splitting at string f =E2=96=B6 split at newlines (ps:\\n:) z =E2=96=B6 (Z:opt:) split result into shell words 0 =E2=96=B6 split with 0-bytes: ps:\\0: j:string: =E2=96=B6 join words of array with string as separator F =E2=96=B6 join words of array with newlines (pj:\\n:) w =E2=96=B6 count words, use s to define word delimiter W =E2=96=B6 count words, double delimiters count doubly i =E2=96=B6 sort case insensitive. Combine with n, O n =E2=96=B6 sort numerically o =E2=96=B6 sort in ascending order O =E2=96=B6 reverse sort order a =E2=96=B6 sort in array index order (with O reversed) U =E2=96=B6 convert to uppercase L =E2=96=B6 convert to lowercase V =E2=96=B6 make special characters visible ...14 hints omitted. Note that this is on a rather small terminal, some hints needed to be omitted, and there is a line wrapping at A(A). It is really easy to change the hints files, so you can just make a list of things you are currently learning.=20 I hope it is clearer now.=20 Kind regards,=20 Joep =20 =20