zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: How to complete a file name?
Date: Wed, 23 Jan 2008 08:57:40 -0800	[thread overview]
Message-ID: <080123085740.ZM17413@torch.brasslantern.com> (raw)
In-Reply-To: <200801231418.m0NEI9mR029531@news01.csr.com>

On Jan 23,  2:18pm, Peter Stephenson wrote:
}
} *Forced* filename completion is easy; you just bind it to another key.
} 
}   zle -C complete-filename complete-word _generic
}   zstyle ':completion:complete-filename:*' completer _files
}   bindkey '^xf' complete-filename

Hmm.  Why not just append _files to the completer style, so that file
completion is always tried if everything else fails?

In fact, why not this:

    _unquoted_files { compset -q; _files }
    zstyle ':completion:*' completer _oldlist _expand _complete \
	_match _ignored _approximate _prefix _files _unquoted_files


  parent reply	other threads:[~2008-01-23 17:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 16:38 Jörg Sommer
2008-01-22  0:48 ` Clint Adams
2008-01-23 13:08   ` Jörg Sommer
2008-01-23 14:18     ` Peter Stephenson
2008-01-23 15:14       ` Jörg Sommer
2008-01-23 16:17         ` Bart Schaefer
2008-01-23 16:57       ` Bart Schaefer [this message]
2008-01-24 11:56         ` Jörg Sommer

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=080123085740.ZM17413@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).