Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Force file completion when hitting TAB twice
- X-seq: zsh-users 14666
- From: Yuri D'Elia <wavexx@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Force file completion when hitting TAB twice
- Date: Fri, 18 Dec 2009 15:24:05 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20091217175808.2e860888@xxxxxxxxxxxxxxxxxxx> <20091218104616.49dafffa@news01> <200912181121.nBIBLIf9005083@xxxxxxxxxxxxxx> <20091218130652.01236a7f@xxxxxxxxxxxxxxxxxxx> <20091218122806.GB21799@xxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Fri, 18 Dec 2009 13:28:06 +0100
Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> What I do, if compsys is too smart in some situations is that I invoke
> a widget that does nothing but file completion. I got that on a
> separate keybinding - namely '^xf'.
>
> zle -C complete-files complete-word _generic
> zstyle ':completion:complete-files:*' completer _files
> bindkey '^xf' complete-files
>
> I do the same to complete words that are in my history, for which I
> got a binding on '^xh':
>
> zle -C complete-history complete-word _generic
> zstyle ':completion:complete-history:*' completer _history
> bindkey '^xh' complete-history
>
> So, everytime <tab> tries to be smarter than it should, I'm hitting
> ^xf and be done with it.
That's a good suggestion.
I would have preferred to the '_complete_failed' approach better,
but there's no point if I *already* found a widget that breaks it.
I need something that can get me out every time.
The history completer is also nice to re-use old file names.
Thanks for all the suggestions.
Very appreciated.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author