From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5959 invoked by alias); 27 Dec 2014 22:32:42 -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: 19638 Received: (qmail 5276 invoked from network); 27 Dec 2014 22:32:40 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=bZ0SAhqW2jSSWCXhAuWURqV8ZhJW8mVw9fWb+7sHibg=; b=gDQhDdLkXGU0zX2BHv2GbUyICRfr0VWN8bHsjWUZn92zmaMybNXZHdsSqndWfouOot RfDh3oZOEMVjoqA6fY1TWgwBJvqpUS8pv4fx7HRyZCA9ft5RrJWY5y6cJMSqfm9re0Vr UcpU+lEKEm2n/SUNbbUWCvKQy4FcaTZ8Egd9O8npOdflC1V/wYmnTGtoy4XEmIYiEHn2 EoqwoX1PIjY1dML5WcCBWlTyfUCC0bG4PoSqXOJ8W/r1qASIEUpDudSBw2935iXVGxjU 4ehak9ZZObQYzqSoqaqpzCtRsHETi41IxuT4BdBQ+lUoD8qJgxwQPDqscwZ/H0CzagO5 MxFg== X-Received: by 10.194.62.76 with SMTP id w12mr94639846wjr.5.1419716265351; Sat, 27 Dec 2014 13:37:45 -0800 (PST) Message-ID: <549F26A7.8020005@gmail.com> Date: Sat, 27 Dec 2014 23:37:43 +0200 From: Aleksandrina Nikolova User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Zsh Users Subject: Always display prefix, even if unambiguous? Content-Type: multipart/alternative; boundary="------------080007000401000400090007" --------------080007000401000400090007 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Greetings! I don't know if this counts as a bug or I've overlooked something, but I can't figure out how to make zsh's compsys to always display the full path when completing filenames, for example: ls /usr/s/l generates: *files:** **sbin/ldattach* sbin/lpadmin* sbin/lshw* share/libbluray/ share/liblangtag/ share/llvm/ src/linux@ ** **sbin/locale-gen* sbin/lpc* sbin/lspci* share/libexttextcat/ share/libquvi-scripts/ share/locale/ src/linux-3.17.7-gentoo/** **sbin/logoutd* sbin/lpinfo* share/lcdf-typetools/ share/libidn/ share/librarian/ share/log4j/ ** **sbin/logrotate* sbin/lpmove* share/lftp/ share/libjpeg-turbo/ share/libtool/ share/lshw/ * which is fine. If I add the file-pattern style: zstyle ':completion:*' file-patterns '*(-^/):files:file *(-/):directories:directory' to separate files from dirs, I get: *file:** **ldattach* locale-gen* logoutd* logrotate* lpadmin* lpc* lpinfo* lpmove* lshw* lspci* ** ** **directory:** **share/lcdf-typetools/ share/libexttextcat/ share/liblangtag/ share/libtool/ share/log4j/ src/linux-3.17.7-gentoo/ ** **share/lftp/ share/libidn/ share/libquvi-scripts/ share/llvm/ share/lshw/ ** **share/libbluray/ share/libjpeg-turbo/ share/librarian/ share/locale/ src/linux@ * i.e. it does not list the directory of the files, because they are all in sbin and zsh seems to treat the dirs and files completion separately now. If I complete something like ls /etc//a I get:* **file:** **acpi/ati-powermode.sh* ati/amdpcsdb.default conf.d/acpid conf.d/atieventsd init.d/atd* mail/aliases.db pam.d/atd ** **at/at.deny ati/authatieventsd.sh* conf.d/alsasound init.d/acpid* init.d/atieventsd* modprobe.d/aliases.conf security/access.conf ** **ati/amdpcsdb at-spi2/accessibility.conf conf.d/atd init.d/alsasound* mail/aliases modprobe.d/alsa.conf ** ** **directory:** **acpi/actions/ lvm/archive/ ssl/apache2/ terminfo/a/ xdg/autostart/* the full path (relative to the unambiguous prefix /etc) is listed for both files and dirs, since the paths are ambiguous in both cases. I hope I made myself clear. How can I "fix this"? --------------080007000401000400090007--