zsh-users
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
To: zsh-users@sunsite.dk
Subject: Can't complete filename after "-foo" command line arg
Date: Sun, 02 May 2004 10:51:00 +0200	[thread overview]
Message-ID: <87oep79pqj.fsf@emptyhost.emptydomain.de> (raw)

I would like to type the following command line:

    perl -Mblib script/hyrex_server -dir data_inex03

I would like to use filename completion to enter the argument
"data_inex03".  However, it doesn't work right: I type the first
character and then hit TAB and then zsh tells me it's completing
commands and builtin commands, shell functions, reserved words,
parameters, and whatnot

However, if I put an extra arg between "-dir" and the arg I really
want to complete, then it works:

    perl -Mblib script/hyrex_server -dir x data_inex03

Is there a way to get the right completion without this workaround?

Please find my completion setup below.  I didn't know what I was doing
when I called this friendly completion setup command.

tia,
Kai


# The following lines were added by compinstall

zstyle ':completion:*' auto-description 'specify %d'
zstyle ':completion:*' completer _expand _complete _correct
zstyle ':completion:*' completions 1
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' glob 1
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-/]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' substitute 1
zstyle ':completion:*' verbose true
zstyle :compinstall filename '/home/kgr/.zshrc'

autoload -U compinit
compinit
# End of lines added by compinstall


                 reply	other threads:[~2004-05-02  8:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87oep79pqj.fsf@emptyhost.emptydomain.de \
    --to=kai@emptydomain.de \
    --cc=zsh-users@sunsite.dk \
    /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).