Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh Issue - "Tab" character is not pasted into shell
- X-seq: zsh-workers 39157
- From: Xavier Martínez Serrano <xmarti6@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh Issue - "Tab" character is not pasted into shell
- Date: Fri, 2 Sep 2016 09:21:00 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xtec-cat.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=asmmmEB5hD6Vw2i3MUonL7tijK9Nw0JkEJc/w1Ib9r4=; b=LPNo1p3Z2IYEusLKniGMl5jlORDhodNof/JUipki1CIAoI41QcywUTUNxqgA6ws1Te 5siJyNCBm6/RLkquHgVkJUDRfDRIpLhys2w3SRQnyTYjOAVQLqqpiO5M7qFm1iaSkuf8 uvNGTmqVcDCN+g3czvPrTnpAIuH8q1QRMm4Qnyzzd0H31LcEwbjcxv1KaiLJfgg6CF9l gY2ISZrhPPLW5yJX04UslaTu680aXuXGJXQDspvUJljEVXptdDvZi/ASptft9hU05LpG /4kgJEHpdlnHI6o//bZabB3Qe2DCQtd3nMXURU/U+OOLbaTVzNqKxzoDlvnfc0thc04B W6gA==
- In-reply-to: <160901093741.ZM4255@torch.brasslantern.com>
- 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
- References: <CAPYyywhCjvBrC2Vr9MZYnG7B1rGheBH-DFQK=ZAPyPBAP7H_8A@mail.gmail.com> <878tvb7mto.fsf@gmail.com> <160901093741.ZM4255@torch.brasslantern.com>
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@xxxxxxxxxxxxxxxx>:
> On Sep 1, 3:48pm, Christian Neukirchen wrote:
> } Subject: Re: zsh Issue - "Tab" character is not pasted into shell
> }
> } Xavier Martinez Serrano <xmarti6@xxxxxxxx> 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).
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author