Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Don't suggest completion functions when 'correcting' on non-existant commands
- X-seq: zsh-workers 26217
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh Workers" <zsh-workers@xxxxxxxxxx>, 257336-forwarded@xxxxxxxxxxxxxxx
- Subject: Don't suggest completion functions when 'correcting' on non-existant commands
- Date: Wed, 31 Dec 2008 18:48:19 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=d9VjLGIAzpzQEZ0t6IpWaoxICYVstlA9J9PXhpjIGn0=; b=c8tuOJEFtx/zupWbDUX8KhzL5lSNGZIuqrHW66OGYeasiuPg5+2BAQw0IKUaZFQ5qO iKYV+iFA6mSvTAVzLXDptWEuM+EahjI3hNxgRWMNtPqA0CsFXDSWymTRvTihJwFivyKR Ed9E2U4+ioZYVhpxy7XNjicwno+zvPWBLu7co=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=o19pUoU9D/3jM4kLWl2iPLjSqzD1IUD0jtS6e9BIQTaHFUicQ5ndrYBix6LQzozNwe XoU24Y/A2sSB147G17Xr+i51wSABBtfPH6HQbbfqIbskVcgVO563yvvJxIm9kcDSnZvL iaxKjYfzbgO2fDQm6TtKH38QbglPMKW+AWrxQ=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi all,
bug 257336[1] made me think of something that has annoyed me
for ages, but never enough to actually send email to the list:
richih@roadwarrior ~ % figlet
zsh: correct 'figlet' to '_figlet'? [N/y/a/e]
I don't know enough about zsh internas to guesstimate if this is
an easy fix or not. Two possible solutions which come to mind:
1) Make zsh aware of what functions came in through $FPATH
and which came in through $PATH so the correction function
does not even see them when looking for other executable
commands.
2) Make the completion function do the filtering outlined in 1)
Richard
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=257336
Messages sorted by:
Reverse Date,
Date,
Thread,
Author