Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
tab inserts literal tab instead of completing at beginning of line
- X-seq: zsh-workers 29316
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: tab inserts literal tab instead of completing at beginning of line
- Date: Thu, 19 May 2011 00:37:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ScgEE20Da48AqrOlm5luHdTZlHvyCTqYqdlwz1GVPIw=; b=oBd+yn2/4IbQCL9ypusYa3hdm+1DMqJkk7QWD7nnQWQiAE7unkU2/cEM5JTBJxItTA n58xb3udx5E3fc38Vok0tn6oIs1HemC/OGrx6VTiOSGebRlkPHBGrvQt50BYjSKs4yl0 sQBPFdN56F1EqNGB0i3WyELa7jJPNlR1Q+mZ4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=J3OYx82tMWadA40WHCy2swLoE89muBRQG3yXg2eIkDBnp/FcSW8DzgkKxh/LBer+a1 9u32uZtbSYoNipEceC08PqvdenLV0CzI5Mk7xhQv9AmgATdGv7J4X5U7GN5BBkx1tiQ4 pDbHtV/PsVO0912kHmNhRyd1q5BI+cMkobhlE=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Right, so I know that's on purpose usually, but it can happen while
you're completing too:
% autoload compinit
% compinit
% mkdir foo' baz bar'
% mkdir 'bing baz bar'
% zstyle ':completion:*' matcher-list 'l:|=* r:|=*'
% setopt autocd
# this one is just to avoid completing _baz, too lazy to start over
% zstyle ':completion:*:functions' prefix-needed true
| means cursor
% baz|<tab>
results in
% |<tab>\ baz\ bar
results in
% \ baz\ bar |
Yes, this actually happened to me. If I were to find where this
special tab-insert-at-start-of-line handling is, could I disable it,
or do I need to add an option? There's always ctrl-v tab, and why do
you want to write literal tabs at the start of the line anyway; to
paste random indented scriptlets? If that's why, maybe I can make the
thing check if the line is empty instead of $cursor==0?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author