From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: TAB at the command line beginning
Date: Sun, 25 Jul 2004 19:40:04 +0100 [thread overview]
Message-ID: <iiv7g0hmak5ro0heolaf89o03g1va1a08r@4ax.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0407211649070.20062@toltec.zanshin.com>
>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
next prev parent reply other threads:[~2004-07-25 18:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-21 19:53 Igor Ahmetov
2004-07-21 22:47 ` Vincent Lefevre
2004-07-22 0:32 ` Bart Schaefer
2004-07-25 18:40 ` zzapper [this message]
2004-07-26 0:23 ` Vincent Lefevre
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=iiv7g0hmak5ro0heolaf89o03g1va1a08r@4ax.com \
--to=david@tvis.co.uk \
--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).