From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15149 invoked by alias); 17 May 2014 10:38:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18831 Received: (qmail 24612 invoked from network); 17 May 2014 10:38:16 -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 From: Frank Terbeck To: zsh-users@zsh.org Subject: Re: Zsh changes on Ubuntu In-Reply-To: (Thorsten Kampe's message of "Sat, 17 May 2014 11:47:02 +0200") References: User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Date: Sat, 17 May 2014 12:29:58 +0200 Message-ID: <87iop4zoih.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: NDMwNDQ0 Hello, let me put on my debian pkg-zsh team hat on for this one... Thorsten Kampe wrote: > I'm using Zsh in connection with Fizsh bindings on Ubuntu 12.04.=20 > Fizsh has a very useful feature (similar to up-line-or-beginning- > search) to the effect that the cursor keys would do a "sub-string- > search". So if you typed ssh and used the cursor keys, it would=20 > search in the history for the next entry which contained ssh. > > This feature doesn't work anymore in Ubuntu 13.10 and 14.04 (not sure=20 > about 12.10 and 13.04) > > Zsh is 4.3.17 on Ubuntu 12.04. On Ubuntu 13.10 it is 5.0.2.=20 > Additionally there is now a zsh-common package. Fizsh is still the=20 > same version as on Ubuntu 12.04. Fizsh works fine on Cygwin (which=20 > also uses 5.0.2. > > How can I troubleshoot this issue? Since ubuntu is debian's downstream, I'm pretty sure this may be tied to a change in debian's global zshrc: In pre-5.x packages, debian used a rather broken approach trying to read escape sequences for special keys from the terminfo database. Starting with the package for 5.0.0 and onward=C2=B9, that was fixed by setting the terminal zsh is running in into the correct mode for the values from terminfo to be applicable while zsh's line editor (ZLE) is running. This was done to make the setup work across as many different terminals as possible. If you had bound keys to hard-coded escape sequences that worked outside of that mode, those may be invalid with that mode active. To bind something to - say - the Up-Cursor key, you'd do this: bindkey "${key[Up]}" some-widgets-name To get a list of valid keys for the =E2=80=98$key[]=E2=80=99 map: print ${(k)key} We also added an entry to the package's NEWS file about this change=C2=B2. The file also mentions a "Get out of my way, I know what I'm doing!" variable, that serves as a way to disable the package's keyboard setup, should you want to go a different route. Regards, Frank =C2=B9 http://anonscm.debian.org/gitweb/?p=3Dcollab-maint/zsh.git;a=3Dblob;= f=3Ddebian/zshrc;hb=3DHEAD =C2=B2 http://anonscm.debian.org/gitweb/?p=3Dcollab-maint/zsh.git;a=3Dblob;= f=3Ddebian/NEWS;hb=3DHEAD --=20 In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925