zsh-workers
 help / color / mirror / code / Atom feed
From: "Xavier Martínez Serrano" <xmarti6@xtec.cat>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org
Subject: Re: zsh Issue - "Tab" character is not pasted into shell
Date: Fri, 2 Sep 2016 09:21:00 +0200	[thread overview]
Message-ID: <CAPYyywhzWR4tb5OmMWxVejbUUyy4E1XWzeuKeNv199EFQwGA5g@mail.gmail.com> (raw)
In-Reply-To: <160901093741.ZM4255@torch.brasslantern.com>

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

Since I use "zsh 4.3.17 (x86_64-unknown-linux-gnu)" version the trick
"zstyle ':completion::*' insert-tab 'pending=1'" worked for
me. I will put it in ".zshrc".

I usually deal with tab-delimited tables, and it was really annoying for me
when I wanted to parse some parts using shell commands

Thank you very much!

Xavi


2016-09-01 18:37 GMT+02:00 Bart Schaefer <schaefer@brasslantern.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-02  7:21 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
2016-09-02  7:21     ` Xavier Martínez Serrano [this message]

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=CAPYyywhzWR4tb5OmMWxVejbUUyy4E1XWzeuKeNv199EFQwGA5g@mail.gmail.com \
    --to=xmarti6@xtec.cat \
    --cc=schaefer@brasslantern.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).