zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Cc: Xavier Martinez Serrano <xmarti6@xtec.cat>
Subject: Re: zsh Issue - "Tab" character is not pasted into shell
Date: Thu, 1 Sep 2016 09:37:41 -0700	[thread overview]
Message-ID: <160901093741.ZM4255@torch.brasslantern.com> (raw)
In-Reply-To: <878tvb7mto.fsf@gmail.com>

On Sep 1,  3:48pm, Christian Neukirchen wrote:
} Subject: Re: zsh Issue - "Tab" character is not pasted into shell
}
} Xavier Martinez Serrano <xmarti6@xtec.cat> writes:
} 
} > I recently experimented an issue when pasting "tab" characters to zsh
} 
} Without special copy&paste support, "pasting" just means the terminal
} emulator types in the text very quickly, and <TAB> means to do
} completion in this case...

If you are using completions from "compinit" you can do this:

    zstyle ':completion::*' insert-tab 'pending=1'

This causes completion to look for pending input when it sees a TAB
character and insert the tab literally if there's more input after it.
Typically this happens only when pasting unless you are working with
a very slow connection or a heavily loaded CPU, so the effect is that
you are able to paste tabs without having completion consume them.

} That said, recent zsh support terminal copy&paste, so with my zsh 5.2
} this works out of the box (setopt zle_bracketed_paste), at least in
} urxvt and xterm.

There's actually no setopt for this, it's on by default.  To turn it
OFF you must do "unset zle_bracketed_paste" (it's a parameter, not an
option).


  reply	other threads:[~2016-09-01 16:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-01  8:42 Xavier Martínez Serrano
2016-09-01 13:48 ` Christian Neukirchen
2016-09-01 16:37   ` Bart Schaefer [this message]
2016-09-02  7:21     ` Xavier Martínez Serrano

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=160901093741.ZM4255@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=xmarti6@xtec.cat \
    --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).