Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: edit-command-line, vim, and pasting
- X-seq: zsh-workers 37070
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxx
 
- Subject: Re: edit-command-line, vim, and pasting
 
- Date: Thu, 5 Nov 2015 09:22:43 -0800
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=brasslantern_com.20150623.gappssmtp.com; s=20150623;        h=from:message-id:date:in-reply-to:comments:references:to:subject         :mime-version:content-type;        bh=yf9/N1TplFquPWtGKSufl9rlBzpH+QY5Vaq8I5Q6WRY=;        b=KH5gZkYwKLvitFY0sKheXbxxlyY+0yyOWYtl/gnR69fcwID3x1RgN+qVIkDvBDJfqF         B+zD/9P1fwfj0zAp7i0nRhFIrw28TMuaTHKvEf/VehZSVTZjWzdbMIxdEspEtvrrD2FG         trTcekc6hzHcL56lemoY6PIeCkZGrSLMtfCAdCEFDpAPtg4UWFcJyljNSRIMFG5hTVT+         zvjhCZeZ6KW75NyF1v/TpLERY5ciDMVPg7seWJslXokXsSe+scp2iGmsySZdYSLivS0z         GGM2u5VBst13VHzBJLDkVmomS8M4ujAAjCFSJQcEmMLfz2gjqg9fydgJqj1qXsqpru87         Semw==
 
- In-reply-to: <29492.1446721743@thecus.kiddle.eu>
 
- 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: <CAPZ477Oz5BCB797hpE5SO+X9f_Sz8BXX49nUZ9jPERgVGcXHzw@mail.gmail.com> 	<151101103921.ZM16163@torch.brasslantern.com> 	<18028.1446462993@thecus.kiddle.eu> 	<151103093149.ZM18895@torch.brasslantern.com> 	<29492.1446721743@thecus.kiddle.eu>
 
On Nov 5, 12:09pm, Oliver Kiddle wrote:
}
} I'm not quite sure why stdin (but not stdout/stderr) is closed for zle
} widgets but we could generate sequences only for commands executed with
} the tty opened on fd 0. However, it is easier to just handle the case
} specifically in edit-command-line.
OK.  Somewhere (perhaps both in description of the zle_bracketed_paste
variable and in the section on user-defined widgets?) the doc should
note the need to do this end/start thing when running an external
command.
Or maybe as you mentioned there should be a built-in way to do it
safely -- "zle -X command [args]" which does the "exec < /dev/tty"
and wraps the command in the bracketed-paste sequences and possibly
also does an implicit "zle -I"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author