Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: TAB at the command line beginning
- X-seq: zsh-users 7769
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: TAB at the command line beginning
- Date: Sun, 25 Jul 2004 19:40:04 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040721195315.GA2732@home> <20040721224712.GJ7828@xxxxxxxxxxxxx> <Pine.LNX.4.61.0407211649070.20062@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
>The way to configure _that_ is to create your own binding for TAB.
>
> history-search-or-complete-word() {
> if [[ -z "$BUFFER" ]]
> then zle history-incremental-search-backward "$@"
> else zle complete-word "$@"
> fi
> }
> zle -N history-search-or-complete-word
> bindkey '\t' history-search-or-complete-word
>
>You can do more complicated tests than [[ -z "$BUFFER" ]] ... one that
>might be interesting is [[ -z "$BUFFER" && -z "$PREBUFFER" ]].
PMI but what does this extra test achieve , I couldn't see nowt?
zzapper (vim, cygwin, wiki & zsh)
--
vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"
http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author