From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: insert-tab (Re: Getting "parse error" from _path_files)
Date: Tue, 6 Jun 2000 10:37:42 +0200 (MET DST) [thread overview]
Message-ID: <200006060837.KAA08259@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Mon, 5 Jun 2000 15:13:39 +0000
Bart Schaefer wrote:
> On Jun 5, 4:33pm, Sven Wischnowsky wrote:
> } Subject: Re: Getting "parse error" from _path_files
> }
> } Bart Schaefer wrote:
> }
> } > if [[ "$compstate[insert]" = tab* && "$WIDGET" != *list* ]]; then
> } > { zstyle -T ":completion:${curcontext}:" insert-tab &&
> } > { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
> } > zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
> } >
> } > Which reminds me to wonder why insert-tab is tested for *not* being set,
> } > at that point?
> }
> } Err...? It is tested for being set (to true), with different defaults for
> } not-in-vared and in-vared.
>
> zagzig[38] zstyle ':completion:*' insert-tab true
> zagzig[39] ls x<TAB>
> Completing `file'
>
> According to the doc for insert-tab, I should have gotten a tab inserted,
> because there is a non-blank character to the left of the cursor.
No, you get the tab when there is *no* non-blank character to the left:
item(tt(insert-tab))(
If this has one of the `true' values, the completion system will
insert a TAB character (assuming it was used to start completion) instead
of performing completion when there is no non-blank character to the left
of the cursor. If set to `false', completion will be done even there.
The default value of this style is `true' unless when completing
inside the tt(vared) builtin command, where it defaults to `false'.
)
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-06-06 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-06 8:37 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-06-05 14:33 Getting "parse error" from _path_files Sven Wischnowsky
2000-06-05 15:13 ` insert-tab (Re: Getting "parse error" from _path_files) Bart Schaefer
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=200006060837.KAA08259@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).