zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: completion of filenames
Date: Tue, 10 Dec 2019 08:59:20 -0800	[thread overview]
Message-ID: <eabc8850-c59f-767e-02be-5681a782cc34@eastlink.ca> (raw)
In-Reply-To: <1575995450.4447.3.camel@samsung.com>

On 2019-12-10 8:30 a.m., Peter Stephenson wrote:
>
> Suffix aliases are already handled.  So if it's a file in the current directory,
> you should find typing ./<tab> completes files with a suffix alias defined.
>
> pws
>
Doesn't work.  This could be something I've botched up myself. Here's 
what I think is relevant:


    zstyle ':completion:*' completer _expand _complete _files

    #Tab completion should be case-insensitive.
    # Original: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
    zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}'
    'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
    zstyle ':completion:*' auto-description 'specify: %d'
    zstyle ':completion:*' format 'Completing %d'
    zstyle ':completion:*' group-name ''
    zstyle ':completion:*' list-colors ''
    zstyle ':completion:*' list-prompt %SAt %p: Hit TAB 'for more', or
    the char to insert%s
    ###zstyle ':completion:*' menu select=2
    ### zstyle ':completion:*' menu select=long
    zstyle ':completion:*' select-prompt %SScrolling active: current
    selection at %p%s
    zstyle ':completion:*' use-compctl false
    zstyle ':completion:*' verbose true

    zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
    zstyle ':completion:*:match:*' original only
    zstyle ':completion:*:approximate:*' max-errors 1 numeric
    zstyle ':completion:*:expand:*' tag-order all-expansions
    # cd not select parent dir:
    zstyle ':completion:*:cd:*' ignore-parents parent pwd


... I think water-bedding can happen with this stuff, you fix one issue 
and create another, so previous tinkerings with completion might have 
caused this.  Myself I'd like it as plain vanilla as it could probably 
be, just complete files all the time, every time, in the current 
directory, the less 'helpfulness' the better.  Cool what 's available, 
but I'd like to build up from the basics.

BTW, just to bitch:

     zstyle ':completion:*' completer _expand _complete _files

When you see that in any font that is not fixed width,  you can't hardly 
tell that 'completer_expand' is different from 'completer _expand'  ... 
the space is easy to miss.  Not that there's much that could be done 
about that now.



  reply	other threads:[~2019-12-10 17:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191210161919epcas1p2c60b547299b6425434345c4f26071643@epcas1p2.samsung.com>
2019-12-10 16:17 ` Ray Andrews
2019-12-10 16:30   ` Peter Stephenson
2019-12-10 16:59     ` Ray Andrews [this message]
2019-12-10 17:16       ` Peter Stephenson
2019-12-10 17:45         ` Ray Andrews
2019-12-13 15:59       ` Ray Andrews
2019-12-13 16:24         ` Peter Stephenson
2019-12-13 17:06           ` Ray Andrews
2019-12-13 19:46             ` Bart Schaefer
2019-12-13 21:10               ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eabc8850-c59f-767e-02be-5681a782cc34@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).