zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: tab inserts literal tab instead of completing at beginning of line
Date: Thu, 19 May 2011 00:37:26 +0200	[thread overview]
Message-ID: <BANLkTimMcVWMzXnyJbFfuY2iDcOW2gJtug@mail.gmail.com> (raw)

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


             reply	other threads:[~2011-05-18 22:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 22:37 Mikael Magnusson [this message]
2011-05-19  5:47 ` Bart Schaefer
2011-05-19  9:36   ` Mikael Magnusson
2011-05-19 15:19     ` Bart Schaefer
2011-05-19 16:00       ` Mikael Magnusson
2011-05-20 21:55         ` Mikael Magnusson
2011-05-23  2:27           ` Bart Schaefer
2011-05-23  2:55             ` Mikael Magnusson
2011-05-23 16:57               ` Bart Schaefer
2011-05-23 17:11                 ` Mikael Magnusson
2011-05-24  2:55                   ` 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=BANLkTimMcVWMzXnyJbFfuY2iDcOW2gJtug@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).