Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to complete a file name?



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



Messages sorted by: Reverse Date, Date, Thread, Author